Commit graph

158194 commits

Author SHA1 Message Date
Zhiyi Zhang 8d69490fb7 uxtheme: Use system DPI for OpenThemeData() without valid window handles.
Tested manually on Wine for 96, 120, 144, 168, 192 and 216 DPI.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53298
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-06 16:02:48 +02:00
Zhiyi Zhang e2daffda25 uxtheme/tests: Add more GetThemePartSize() tests in different DPI.
To test that GetThemePartSize() should always report theme part size in system DPI if the theme
handle is open without a valid window handle. Previous tests succeeded because the current DPI
happens to be 96.

Tested manually on Windows 10 for 96, 120, 144, 168, 192 and 216 DPI.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-06 16:02:48 +02:00
Hans Leidekker 738a5b53a4 secur32: Validate input buffers in schan_InitializeSecurityContextW().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53309
2022-07-06 16:02:48 +02:00
Zebediah Figura 7623d0a6f5 d3d9/tests: Build without -DWINE_NO_LONG_TYPES. 2022-07-06 16:02:48 +02:00
Zebediah Figura c6da355148 d3d9/tests: Make getPixelColor() checks into actual ok() calls.
These should never fail.
2022-07-06 16:02:48 +02:00
Hans Leidekker f83a66f052 wininet: Always reset the second input buffer in netcon_secure_connect_setup(). 2022-07-06 16:02:48 +02:00
Hans Leidekker b349a3e375 winhttp: Always reset the second input buffer in netcon_secure_connect(). 2022-07-06 16:02:48 +02:00
Tim Clem 6c465ae8ef mountmgr.sys: Always set the return size from dhcp_request implementations.
Also return STATUS_SUCCESS rather than 0 in early-out cases.

Signed-off-by: Tim Clem <tclem@codeweavers.com>
2022-07-05 22:23:18 +02:00
Dmitry Timoshkov 3f36d7e25b d2d1/tests: Fix compilation with clang.
../wine.src/dlls/d2d1/tests/d2d1.c:11078:11: error: cannot combine with previous 'type-name' declaration specifier
    INT32 _int32;
          ^
../wine.src/dlls/d2d1/tests/d2d1.c:11078:5: warning: declaration does not declare anything [-Wmissing-declarations]
    INT32 _int32;
    ^~~~~~~~~~~~

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 19:13:36 +02:00
Nikolay Sivov a2f8f5f93f wmic: Handle properly list for GET verb.
Instead of querying all properties and then matching to requested one,
first check if all requested properties are supported by given class.
Then select just that subset.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 19:06:12 +02:00
Jan Sikorski 4c96a51bdb wined3d: Add missing copy offset in wined3d_texture_vk_upload_data().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53307
Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
2022-07-05 16:45:09 +02:00
Alexander Wilms 1a2aa0b0be ntoskrnl: Add KeQueryPriorityThread stub.
Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
2022-07-05 16:40:49 +02:00
Alexandre Julliard 9c551448cb server: Prevent infinite symlink recursion in lookup_named_object().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:33:55 +02:00
Alexandre Julliard 248231468d server: Avoid potential NULL dereference in create_named_object().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:33:33 +02:00
Alexandre Julliard 68a69b51bb server: Return the standard status code when the key exists in NtCreateKey.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:19:00 +02:00
Alexandre Julliard ec8edb66df server: Fix access check for NtQueryKey.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:08:43 +02:00
Alexandre Julliard 95ddb7576d ntdll: Fix returned error for NtCreateKey with empty name.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:06:39 +02:00
Alexandre Julliard a4373db64e ntdll/tests: Add a few more tests for registry path names.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:00:38 +02:00
Alexandre Julliard aca2cac6e2 ntdll/tests: Remove some workarounds for older Windows versions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:00:38 +02:00
Alexandre Julliard e76c07d4e7 advapi32/tests: Remove some workarounds for older Windows versions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:00:38 +02:00
Nikolay Sivov ec097bc1b0 mf/samplegrabber: Consistently check for shutdown flag within a lock.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 568b4bc902 mf/sar: Consistently check for shutdown flag within a lock.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 5981f2ed73 mf/evr: Consistently check for shutdown flag within a lock.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Zebediah Figura d4bb82af35 wineusb.sys: Complete IRPs through the event thread. 2022-07-05 12:34:03 +02:00
Zebediah Figura f8e5e72a59 wineusb.sys: Report new devices through the event thread. 2022-07-05 12:34:03 +02:00
Zebediah Figura 4ed2502805 wineusb.sys: Remove devices through the event thread. 2022-07-05 12:34:03 +02:00
Zebediah Figura 4434897096 wineusb.sys: Spawn a separate thread to consume Unix library events. 2022-07-05 12:34:03 +02:00
Rémi Bernon 4676273b88 mf: Add error cases for MFGetTopoNodeCurrentType.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-05 12:34:03 +02:00
Rémi Bernon b43e4a54e2 mf/tests: Add more MFGetTopoNodeCurrentType tests.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-05 12:34:03 +02:00
Rémi Bernon a3b3708134 winegstreamer: Fix ColorConvert transform GetCurrent(Input|Output)Type.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-05 12:34:03 +02:00
Rémi Bernon 963f76180b winegstreamer: Fix Resampler transform GetCurrent(Input|Output)Type.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-07-05 12:34:03 +02:00
Jacek Caban f85985abbe win32u: Move WM_NCCREATE scroll handling from user32. 2022-07-05 12:34:03 +02:00
Jacek Caban 4de61c465f win32u: Move get_scroll_info_ptr implementation from user32. 2022-07-05 12:34:03 +02:00
Jacek Caban 5f93b3ca93 user32: Use GetScrollInfo for GetScrollRange implementation. 2022-07-05 12:34:03 +02:00
Jacek Caban 67630d0f4c user32: Use GetScrollInfo for GetScrollPos implementation. 2022-07-05 12:34:03 +02:00
Jacek Caban 4844121298 win32u: Move scroll bar proc implementation from user32. 2022-07-05 12:34:03 +02:00
Jacek Caban 9d3058aa3a user32: Use SIF_RETURNPREV for SetScrollPos implementation. 2022-07-05 12:34:03 +02:00
Jacek Caban c9c69dff7e win32u: Support undocumented SIF_RETURNPREV flag in set_scroll_info. 2022-07-05 12:34:03 +02:00
Nikolay Sivov f059013a41 winemsibuilder: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 5675994602 winepath: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov ee1f96ebfb wordpad: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov a0bef9f322 wscript: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 201ed0858f rpcss: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 7918bfc5cd d2d1/tests: Use CRT allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 5284e1db83 d2d1: Implement GetRegisteredEffects().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Ziqing Hui 97abb6d2ba d2d1/effect: Keep builtin effects in the same list as the custom once.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov ffab990bd6 d2d1/effect: Check that "Inputs" property was specified in the description.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov 05d8283a9d d2d1/tests: Add missing return value check (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Zebediah Figura 0b51ef9f03 d3d10core/tests: Build without -DWINE_NO_LONG_TYPES. 2022-07-05 12:34:03 +02:00
Paul Gofman 07d3c82395 server: Allow IOCTL_AFD_POLL for sockets without unix fd.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-07-05 10:00:18 +02:00