Commit graph

162593 commits

Author SHA1 Message Date
Alexandre Julliard
5d3c0cf01d wow64: Call the 32-bit KiRaiseUserExceptionDispatcher for invalid handle exceptions. 2023-02-28 15:07:54 +01:00
Alexandre Julliard
3c3cf47a19 ntdll: Also check for data execution on x86-64.
It can still be disabled from Wow64.
2023-02-28 15:07:54 +01:00
Alexandre Julliard
a3ff624bcc ntdll: Skip dependency only for the actually loaded ntdll and kernel32, instead of matching by name. 2023-02-28 09:48:01 +01:00
Alexandre Julliard
b0d57e5f91 ntdll: Update the IOSB status in NtCreateNamedPipeFile(). 2023-02-28 09:47:41 +01:00
Jinoh Kang
7e28fa5c55 riched20: Don't set para unless committing cursor move in ME_MoveCursorWords.
Introduce a temporary variable, `other_para`, so that we don't end up
returning incorrect para (with stale run) inside the output cursor.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54564
2023-02-28 09:46:43 +01:00
Jinoh Kang
21d25b17c2 riched20/tests: Test for word movement across paragraph boundary. 2023-02-28 09:46:43 +01:00
Francois Gouget
37cd13abdf riched20/tests: Fix the EM_GETSELTEXT tests in Hindi on Windows.
On Windows EM_GETSELTEXT fails with an invalid parameter error in the
Hindi locale but works in most other locales, including UTF-8 ones.
So check for this issue and adjust the expected results accordingly.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54559
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54565
2023-02-28 09:46:33 +01:00
Francois Gouget
baa4197064 riched20/tests: EM_GETSELTEXT's wparam is not used and should be 0. 2023-02-28 09:46:33 +01:00
Francois Gouget
002860d6b3 riched32/tests: EM_GETSELTEXT's wparam is not used and should be 0. 2023-02-28 09:46:33 +01:00
Alex Henrie
aa21d1acb2 shell32: Add support for Program Manager icons with arguments.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52506
2023-02-28 09:46:11 +01:00
Akihiro Sagawa
e8bba58431 msado15: Free recordset filter on close.
Introduced by commit 669107f6c5.
2023-02-28 09:44:20 +01:00
Francois Gouget
9e5d54eac4 ntdll/tests: Minimize the stack size for test_tp_multi_wait().
This test creates 512 threads so the default 2 MB stack size requires
1 GB which can cause out-of-virtual-memory-space issues. So cause
threadpool to use the smallest possible stack size, which should be
1 MB, halving the virtual memory usage.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54064
2023-02-27 20:37:10 +01:00
Connor McAdams
b3a87694a4 uiautomationcore: Implement IUIAutomation::CheckNotSupported.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-02-27 20:17:30 +01:00
Connor McAdams
cd6891962b uiautomationcore: Implement IUIAutomation reserved value retrieval methods.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-02-27 20:17:30 +01:00
Connor McAdams
3bc59a4e9a uiautomationcore: Implement IUIAutomation::IntNativeArrayToSafeArray.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-02-27 20:17:30 +01:00
Connor McAdams
dc79cdc50a uiautomationcore: Implement IUIAutomation::IntSafeArrayToNativeArray.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-02-27 20:17:30 +01:00
Connor McAdams
bbc187a2b7 uiautomationcore/tests: Fix UiaNodeFromHandle tests on Windows 11.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-02-27 20:17:30 +01:00
Connor McAdams
8a4ad6096b uiautomationcore/tests: Fix UiaHUiaNodeFromVariant tests on Windows 11.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-02-27 20:17:30 +01:00
Francois Gouget
a8de350493 mscoree/tests: Trace the GetExitCodeProcess() error before it gets lost. 2023-02-27 20:17:30 +01:00
Tingzhong Luo
3eb06cf431 winspool: Check dmSize in IsValidDevmodeW(). 2023-02-27 16:36:22 +01:00
Francois Gouget
9d6a9909c3 gdi32/tests: Fix the SetDeviceGammaRamp() tests on Windows 10 1909.
SetDeviceGammaRamp() checks the specified ramp to prevent applications
from setting malicious gamma ramps (e.g. hiding text by remapping its
color to match the background).
But Windows 10 1909 has fewer checks than later Windows 10 versions.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54593
2023-02-27 16:36:22 +01:00
Francois Gouget
267f612604 gdi32/tests: Make the gamma ramp failures more unique.
Otherwise the only way to identify which failure happened is to check
its line number which is not practical across versions.
2023-02-27 16:36:22 +01:00
Francois Gouget
390ed160ef gdi32/tests: Simplify setting up the non uniform gamma ramps. 2023-02-27 16:36:22 +01:00
Eric Pouech
291daf542d dbghelp/tests: Fix tests for process count in wow64.
Introduce get_process_kind() to discriminate configurations.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-27 16:36:22 +01:00
Eric Pouech
8aea039507 dbghelp/tests: Introduce get_machine_bitness() helper.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-27 16:36:22 +01:00
Eric Pouech
160d961e32 dbghelp/tests: Only retrieve the system directories once.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-27 16:36:22 +01:00
Eric Pouech
91a644ae8a dbghelp/tests: Introduce ends_withW helper.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-27 16:36:22 +01:00
Eric Pouech
fbe23dafe1 dbghelp/tests: Adapt test_modules_overlap() for Windows 11.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54535
2023-02-27 16:36:22 +01:00
Eric Pouech
394361cdd0 dbghelp/tests: Add wrapper for EnumerateLoadedModulesW64().
Since this API sporadically fails with STATUS_INFO_LENGTH_MISMATCH
as GetLastError() (sic!) on Windows 11, retrying the call let us get
the relevant output.

No clear explanation of the cause of the failure, it's maybe generated
when modules are still loaded into child process and it detects
modification of the modules' list while enumerating all modules.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-27 16:36:22 +01:00
Alexandre Julliard
1774db388b winedbg: Use the Zydis library for disassembly. 2023-02-27 16:36:22 +01:00
Alexandre Julliard
7bc94bc8f0 libs: Import the Zydis library version 4.0.0.
Also some needed header files from Zycore version 1.4.1.
2023-02-27 16:36:22 +01:00
Alexandre Julliard
921367fc57 winebuild: Only allow the stdcall calling convention for system calls. 2023-02-27 11:02:14 +01:00
Alexandre Julliard
4a0f3fbcb5 winegcc: Stop using the deprecated prelink tool. 2023-02-27 11:01:47 +01:00
Alexandre Julliard
5c98858a9b makedep: Remove support for building shared libraries. 2023-02-27 11:01:23 +01:00
Rémi Bernon
76e7f030fe oleaut32: Allocate a full pointer when unmarshalling byref arrays.
Instead of the 4 bytes array wire size returned by get_type_size,
which will truncate the pointer on 64-bit.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54562
2023-02-27 10:59:19 +01:00
Rémi Bernon
3e82dc30e2 oleaut32/tests: Test VARIANT_UserUnmarshal allocation sizes. 2023-02-27 10:59:19 +01:00
Francois Gouget
b66f9af106 kernel32/tests: Fix the French GetNumberFormatEx() test on Windows 11.
Windows 11 uses a narrow non-breaking space instead of a plain one when
formatting numbers.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54583
2023-02-27 10:56:01 +01:00
Francois Gouget
705d35edfa kernel32/tests: Fix the NtGetNlsSectionPtr() test on Windows 11.
NtGetNlsSectionPtr() supports an unknown section 14 which presumably
takes no id parameter such that the call succeeds.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54584
2023-02-27 10:55:36 +01:00
Francois Gouget
ad5c8fb6ff kernel32/tests: Fix the NLSVersion test on Windows 10 22H2.
Microsoft backported support for the 60403 NLS version from Windows 11
21H2 to Windows 10 22H2 to ensure better compatibility between the two
systems. This is similar to when they preserved support for NLS
version 6020f when switching Windows 10 2004 to 60305.
So use larger version changes to check that IsValidNLSVersion() does
reject invalid versions.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54582
2023-02-27 10:55:23 +01:00
Gijs Vermeulen
a4e51c6bec shell32: Add Shell_GetCachedImageIndexA/W exports.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54581
2023-02-27 10:54:43 +01:00
Sven Baars
533454111c bcrypt: Remove unused fields from struct key_asymmetric32. 2023-02-27 10:53:25 +01:00
Torge Matthies
78ce8e0018 kernel32: Fix WaitForThreadpoolIoCallbacks spec entry.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-02-27 10:53:17 +01:00
Torge Matthies
2db94ca8f9 kernelbase: Fix WaitForThreadpoolIoCallbacks spec entry.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-02-27 10:53:15 +01:00
Sven Baars
3fb2a5d55e bcrypt: Add wow64 support for PSS padding. 2023-02-24 22:23:12 +01:00
Sven Baars
a554ff21d4 bcrypt: Factor out wow64 padding conversion. 2023-02-24 22:23:12 +01:00
Francois Gouget
c898503e94 mscoree/tests: Trace the error when a Windows API fails. 2023-02-24 22:23:12 +01:00
Francois Gouget
632c8cfd2b winmm/tests: Ignore spurious WM_DWMCOLORIZATIONCOLORCHANGED messages.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54557
2023-02-24 22:23:12 +01:00
Marcus Meissner
aa1cc9ad38 user32/tests: Fix size passed to ToUnicode.
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
2023-02-24 22:23:12 +01:00
Huw Davies
9260e6333b winemac: Fix return type of ProcessEvents().
Introduced by commit a97fd9f29e
2023-02-24 22:23:12 +01:00
Ivan Chikish
907b1b4a36 gdi32/tests: Check last error on ' '. 2023-02-24 22:23:12 +01:00