Commit graph

158459 commits

Author SHA1 Message Date
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
Zebediah Figura
f792b08285 ws2_32/tests: Test FD_CONNECT with UDP sockets. 2022-07-19 20:02:15 +02:00
Zebediah Figura
913a96d753 ws2_32/tests: Add more tests for SO_CONNECT_TIME. 2022-07-19 20:01:34 +02:00
Connor McAdams
bc584afad9 uiautomationcore: Implement UiaNodeRelease.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-19 11:06:17 +02:00
Connor McAdams
ab4a0017e6 uiautomationcore: Implement UiaNodeFromProvider.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-19 11:06:16 +02:00
Connor McAdams
7840615361 uiautomationcore: Add stub UiaGetPropertyValue implementation.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-19 11:06:15 +02:00
Connor McAdams
3fc9493f42 uiautomationcore: Implement UiaLookupId for AutomationIdentifierType_Property GUIDs.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-19 11:06:15 +02:00
Connor McAdams
4d12d83d47 include: Define UI Automation Property GUIDs.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-07-19 11:06:12 +02:00
Brendan McGrath
1113f42aa7 qedit: Do not force the sample to be freed in SampleGrabber_callback().
Remove a work around that causes a crash in Unravel Two.

There is a callback in Unravel Two that appears to add a reference to a
IMediaSample, which this workaround treats as a leak and releases. However, the
application also later releases the reference itself, causing a use-after-free.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51616
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-18 22:07:04 +02:00
Brendan McGrath
2f280d0dda qedit/tests: Test adding a reference to the sample from ISampleGrabberCB::SampleCB().
Unravel Two adds a reference to the IMediaSample during its callback.

This patch adds a test that checks if an application does do this, that it can
free it later and the reference count will finish at zero.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51616
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-18 22:06:52 +02:00
Francois Gouget
3ff91992d4 include: Fix the spelling of some comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-18 19:44:12 +02:00
Francois Gouget
d01b13f495 urlmon/tests: Fix the spelling of a trace() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-18 19:44:12 +02:00
Francois Gouget
7040cf17ff win32u: Fix the spelling of a variable name.
Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-18 19:44:12 +02:00
Francois Gouget
15831e0dcc ntdll: Fix the spelling of a comment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-18 19:44:12 +02:00
Francois Gouget
188e8988ab dbghelp: Fix the spelling of a comment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
2022-07-18 19:44:12 +02:00
Francois Gouget
58b686090d urlmon/tests: Trace why the test file creation failed.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2022-07-18 19:43:44 +02:00
Francois Gouget
321ec274d7 advapi32/tests: Fix the print format, LARGE_INTEGER is signed.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2022-07-18 19:43:44 +02:00
Jinoh Kang
16d785d416 shell32: Return stub bitmap in IShellItemImageFactory::GetImage.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52673
2022-07-18 19:19:16 +02:00
Giovanni Mascellani
6e51e0839c xactengine3_7: Forward wave bank notifications to the application.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
2022-07-18 19:18:31 +02:00
Giovanni Mascellani
4be1dc1b7b faudio: Import upstream commit e3c444e4f819d2364a6adb0ae73b1d01185b1e93.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
2022-07-18 19:18:30 +02:00
Giovanni Mascellani
1ac80a99dd xactengine3_7/tests: Test notifications when loading a wave bank.
"The King of Fighters '98 Ultimate Match Final Edition" depends on
this behavior. At least, the build I have is; it seems other builds
are not.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
2022-07-18 19:18:29 +02:00
Zhiyi Zhang
a0301f7db6 rpcrt4: Implement I_RpcBindingInqLocalClientPID().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-18 19:17:44 +02:00
Zhiyi Zhang
056dbb04de rpcrt4/tests: Add I_RpcBindingInqLocalClientPID() tests.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-18 19:17:44 +02:00
Jinoh Kang
e613992cee kernel32/tests: Test deletion of synchronization objects after handle close. 2022-07-18 19:17:29 +02:00
Paul Gofman
60a84d0e66 taskschd: Return SCHED_S_TASK_HAS_NOT_RUN from regtask_get_LastRunTime() stub. 2022-07-18 11:42:43 +02:00
Paul Gofman
6e7f5f8e5f schedsvc: Read task enable state from XML in SchRpcGetTaskInfo(). 2022-07-18 11:42:42 +02:00