Commit graph

158648 commits

Author SHA1 Message Date
Nikolay Sivov
fcbb0f6c61 dwrite: Duplicate mapping data when creating fallback object.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:09 +02:00
Nikolay Sivov
f2ad1d8b93 dwrite: Override existing ranges with AddMapping().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:09 +02:00
Nikolay Sivov
76e675a011 dwrite: Keep locales separate for fallback data.
Each locale entry contains a "list" of its mappings.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:08 +02:00
Nikolay Sivov
78846236b9 dwrite: Filter out unusable ranges on AddMapping().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:08 +02:00
Nikolay Sivov
1cf2ac20c8 dwrite: Add additional structure for mappings array.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:08 +02:00
Nikolay Sivov
c4af69e0b7 dwrite: Use older interface version for fallback system collection.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 17:54:07 +02:00
Jacek Caban
ca630fb653 user32: Use syscall interface for NtUserCall* functions. 2022-07-22 17:53:32 +02:00
Jacek Caban
a23c1279c6 win32u: Use syscall interface for NtUserCallHwnd and NtUserCallHwndParam. 2022-07-22 17:53:32 +02:00
Jacek Caban
47dd8a6a9b win32u: Use syscall interface for more user painting functions. 2022-07-22 17:53:32 +02:00
Jacek Caban
81df0bc7ef win32u: Use syscall interface for more input functions. 2022-07-22 17:53:32 +02:00
Jacek Caban
7df56c9b3a winemac: Use __wine_unix_call. 2022-07-22 17:52:47 +02:00
Jacek Caban
218e469812 wineandroid: Use __wine_unix_call. 2022-07-22 17:52:47 +02:00
Jacek Caban
d246c1a1da winex11: Use __wine_unix_call. 2022-07-22 17:52:47 +02:00
Jacek Caban
a53330b9c1 win32u: Use syscall interface for message functions. 2022-07-22 17:52:46 +02:00
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