Commit graph

158484 commits

Author SHA1 Message Date
Jacek Caban 0d6d8f388a win32u: Use syscall interface for NtUserGetMessage. 2022-07-22 17:52:44 +02:00
Hugh McMaster 97f10736db regedit: Use 'struct edit_params' with read_value().
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Hugh McMaster becf11084f regedit: Pass updated REG_MULTI_SZ data via 'struct edit_params'.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Hugh McMaster 72fced0236 regedit: Pass updated REG_SZ and REG_EXPAND_SZ data via 'struct edit_params'.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Hugh McMaster b00a4b66b9 regedit: Use a separate dialog proc function for string data types.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
2022-07-21 23:03:29 +02:00
Jacek Caban 88462d9127 win32u: Get rid of no longer needed NtUserSetCallbacks. 2022-07-21 23:03:29 +02:00
Jacek Caban e52e42b875 win32u: Use syscall interface for NtUserMessageCall and NtUserTrackPopupMenuEx.
try_finally() hack is no longer needed. We don't expect exceptions
from unixlib code and client callbacks' exceptions are not propagated
anyway.
2022-07-21 23:03:29 +02:00
Jacek Caban b3fddeb8e4 win32u: Use syscall interface for NtUserMsgWaitForMultipleObjectsEx. 2022-07-21 23:03:29 +02:00
Jacek Caban 6395bf962f win32u/tests: Add tests for catching exceptions from timer proc.
We currently depend on default behaviour of suppressing exceptions
from client callbacks. If we change it to fail by default, we will
need a separated filter for NtUserDispatchMessage.
2022-07-21 23:03:29 +02:00
Jacek Caban 1e5d4e9422 win32u: Use syscall interface for NtUserDispatchMessage. 2022-07-21 23:03:29 +02:00
Jacek Caban 079179fec7 ntdll: Suppress callback exceptions in KiUserCallbackDispatcher. 2022-07-21 23:03:29 +02:00
Jacek Caban c1c57bd750 win32u: Avoid using client callbacks for NtUserSendMessage. 2022-07-21 23:03:29 +02:00
Jacek Caban 2ef6a6eee6 win32u: Remove no longer needed NtUserDispatchMessageA. 2022-07-21 23:03:29 +02:00
Jacek Caban 26a4fb74ee user32: Avoid using NtUserDispatchMessage in DispatchMessage.
When possible, call window proc on PE side to allow unwinding exceptions through DispatchMessageW call.
2022-07-21 23:03:29 +02:00
Connor McAdams e382997c8b uiautomationcore: Add support for ProviderOptions_UseComThreading flag.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-21 23:03:29 +02:00
Connor McAdams 0cea011921 uiautomationcore: Add support for UIAutomationType_Element properties.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-21 20:22:30 +02:00
Connor McAdams afb155145a uiautomationcore: Add support for UIAutomationType_Int properties.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-21 20:22:30 +02:00
Connor McAdams 61fa18aa04 uiautomationcore: Implement UiaGetPropertyValue.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-21 20:22:30 +02:00
Connor McAdams 7dc4a1793e uiautomationcore/tests: Add basic UIA property tests for UiaGetPropertyValue.
Add tests for UIA properties that correspond directly with the
GetPropertyValue method on IRawElementProviderSimple.

Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-21 20:22:30 +02:00
Connor McAdams 93d6b5a4ff include: Add CUIAutomationRegistrar definition.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-21 20:22:21 +02:00
Zebediah Figura 1d0e21db29 server: Move sock->error setting completely out of sock_dispatch_events(). 2022-07-21 20:21:46 +02:00
Zebediah Figura 41cdc6674c server: Report the socket error in sock_poll_event() on POLLERR or POLLHUP.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52815
2022-07-21 20:21:45 +02:00
Zebediah Figura a2f2b773fb server: Record the error for connected and connectionless sockets sockets in sock_error().
As long as we do it for connecting and listening sockets, do it here for the
remaining socket types as well.
2022-07-21 20:21:44 +02:00
Zebediah Figura a1fd99cfbb server: Clear sock->errors[AFD_POLL_BIT_CONNECT_ERR] in sock_poll_event().
Give sock_dispatch_events() a more consistent scope.
2022-07-21 20:21:42 +02:00
Jeff Smith 293c6d24e3 d3drm: Fix components of palette built when loading texture from file.
Fix the palette-building code used by IDirect3DTexture::InitFromFile
to use color components correctly. Also, fix and expand the tests to
properly check the components of a built palette.
2022-07-21 20:21:15 +02:00
Jeff Smith 77189a341f d3drm/tests: Clean up some magic values.
In BMP files with 24-bit depth, color components are stored in BGR
order. Due to magic values being used several places in tests to reduce
the components, some logical errors are hard to spot.

Give names to the magic values to make logical errors more apparent.
2022-07-21 20:21:03 +02:00
Zebediah Figura 236476417a server: Use sock_poll_event() in poll_socket().
In multiple cases errors may be reported only once by the host socket
implementation, but should persist for Windows sockets. These cases are
currently not handled by poll_socket().

poll_socket() also does not include logic for filtering out events when asyncs
are queued or alerted on the relevant socket.

Hence, instead of duplicating more logic, remove the logic already duplicated,
and just call sock_poll_event(), so that there is one central place where events
are translated.

Mark the currently active poll async with a special "pending" field so that
poll_socket() does not attempt to complete it before all sockets are checked.
2022-07-20 22:33:44 +02:00
Zebediah Figura f234341ca1 server: Always wake up pending read or write asyncs on POLLHUP or POLLERR.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52815
2022-07-20 22:33:44 +02:00
Zebediah Figura 07b66768b1 Revert "server: Explicitly shutdown destroyed sockets to force pending poll() calls to return.".
This reverts commit 24b64534e5.

We no longer perform any blocking waits on the client side, so shutdown() is no
longer necessary.

Moreover, shutting down is not always correct. Under some conditions, closing a
TCP socket should trigger RST without FIN (namely, when SO_LINGER is on but has
a zero timeout). By reverting this commit we match Windows behaviour in this
respect.
2022-07-20 22:33:44 +02:00
Zebediah Figura dded35aeb3 ws2_32/tests: Test listen() after a failed connect(). 2022-07-20 22:33:44 +02:00
Santino Mazza d93712feee jscript: Return ParseProcedureText when compile fails.
This prevents crashes when there is an invalid script
inside a tag property.

Because ParseProcedureText calls release_bytecode without
checking if compile_script failed, "code" is not set, and
this leads to a crash when release_bytecode tries to access it.

Signed-off-by: Santino Mazza <mazzasantino1206@gmail.com>
2022-07-20 22:33:44 +02:00
Zhiyi Zhang a0cac2e0d8 dsdmo: Add IMediaParamInfo stub interface.
Fix Chuzzle Deluxe crash at start.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-20 22:33:44 +02:00
Zhiyi Zhang 208a8aaa29 dsdmo/tests: Add IMediaParamInfo tests.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-20 22:33:44 +02:00
Zhiyi Zhang 4e23e412ea include: Add IMediaParamInfo definition.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-20 22:33:44 +02:00
Jinoh Kang 9090229e67 server: Use the token owner instead of the token user for default object owner.
Also, replace the token user with the token owner for the default DACL
as well.  Wine currently selects domain_users_sid as the token owner, so
use that.  This is required to pass the advapi32:security test which
expects the security descriptor owner SID to be referenced in the DACL
as well.
2022-07-20 22:33:44 +02:00
Jinoh Kang b735ded8c2 advapi32/tests: Test that the token default DACL uses token owner instead of token user. 2022-07-20 22:33:44 +02:00
Jinoh Kang 2eb6a25f44 advapi32/tests: Test that default object group match the token primary group. 2022-07-20 22:33:44 +02:00
Jinoh Kang 9e7e6d29f6 advapi32/tests: Test that default object owner match the token owner. 2022-07-20 22:33:44 +02:00
Jinoh Kang 67429f3ad6 advapi32/tests: Check that each ACE is ACCESS_ALLOWED_ACE in the default DACL.
To ensure type safety, without complicating the test.
2022-07-20 22:33:44 +02:00
Alexandre Julliard 31d2a87ba0 winebuild: Add GNU stack note also to the undefined symbols file.
Recent ld complains about this.
2022-07-20 22:33:44 +02:00
Alexandre Julliard 3253cbd869 README: Mention Gitlab. 2022-07-20 19:51:56 +02:00
Paul Gofman e0d8bd3f5a loader/wine.inf: Add runas shell execute verb.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-07-19 20:05:47 +02:00
Paul Gofman 6888e92ebc shell32: Handle file extensions in SHELL_FindExecutableByVerb().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-07-19 20:05:47 +02:00
Paul Gofman 435ba2c684 shell32: Don't quote args substituted through wildcard in SHELL_ArgifyW().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-07-19 20:05:47 +02:00
Alistair Leslie-Hughes d70273363b ntdll/tests: Add RtlFirstFreeAce tests.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
2022-07-19 20:03:39 +02:00
Alistair Leslie-Hughes 0cc26c1218 ntdll: RtlFirstFreeAce only return FALSE on error. 2022-07-19 20:03:26 +02:00
Alistair Leslie-Hughes 0cbfd7ab4c ntdll: Check return parameter before use. 2022-07-19 20:03:24 +02:00
Zebediah Figura 8a4433d6a7 server: Do not set connectionless sockets into the CONNECTING or CONNECTED state.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53058
2022-07-19 20:02:15 +02:00
Zebediah Figura 568a715378 ws2_32/tests: Test polling for AFD_POLL_CONNECT with UDP sockets. 2022-07-19 20:02:15 +02:00
Zebediah Figura 6a59b1a521 ws2_32/tests: Add some tests for connecting a UDP socket. 2022-07-19 20:02:15 +02:00