Commit graph

169049 commits

Author SHA1 Message Date
Bernhard Übelacker
ab28825ace ntdll: Fix structure layout in RtlQueryProcessDebugInformation for 64-bit.
This is to avoid crash in Process Explorer 17.05.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56235
2024-01-24 21:36:23 +01:00
Alexandre Julliard
976e715b86 configure: Only check for libunwind on x86-64. 2024-01-24 17:34:30 +01:00
Martin Storsjö
4e9838fbc2 ntdll: Remove libunwind support for ARM.
Building for ARM with libunwind available has been broken
since 89f3c59739, due to
references to raise_func_trampoline that were left behind.

In Linux builds, libunwind isn't practically needed since
a27b202a4d (which implemented an
internal EHABI unwinder). That unwinder currently only supports
Linux, due to relying on dl_iterate_phdr, but if necessary, we
could also try to detect support for dl_iterate_phdr in configure
for other OSes.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-24 17:34:30 +01:00
Martin Storsjö
57b8d4c019 ntdll: Remove libunwind support for aarch64.
Libunwind hasn't been necessary for unwinding through the ELF
bits since 03d4ba67f4.

This reduces the number of potential build configurations to
keep track of.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-24 17:34:30 +01:00
Martin Storsjö
e772113071 ntdll: Reduce fixme logging for large numbers of cores.
Once we've reached the condition for skipping a core, we will
skip all other cores in the same range as well - don't print
a fixme message for each of them.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-24 17:34:30 +01:00
Rémi Bernon
46c5c2d41a imm32: Complete the composition string when the IME is closed. 2024-01-24 12:19:51 +01:00
Rémi Bernon
0d9e6adada imm32/tests: Test the effect of CPS_CANCEL and CPS_COMPLETE. 2024-01-24 12:19:51 +01:00
Rémi Bernon
faa342a2f1 win32u: Also pass WM_KEYUP messages to ImmProcessKey.
And to ImmTranslateMessage if they have been processed.
2024-01-24 12:19:49 +01:00
Rémi Bernon
08bfeeeb0d imm32/tests: Test that WM_KEYUP are passed to ImeProcessKey. 2024-01-24 12:19:49 +01:00
Rémi Bernon
f522c58ce6 imm32: Mask the scancode before passing it to ImeToAsciiEx. 2024-01-24 12:19:49 +01:00
Rémi Bernon
961e01e517 imm32/tests: Adjust todo_wine for the new Wine CJK keyboard layouts.
We don't return 0xe001 high word anymore, so the tests are now failing.
2024-01-24 12:19:45 +01:00
Rémi Bernon
e2b637c8dc windows.gaming.input: Stub IRawGameController2 interface. 2024-01-24 12:17:35 +01:00
Rémi Bernon
3dce01a204 dinput/tests: Add some IRawGameController2 interface tests. 2024-01-24 12:17:35 +01:00
Rémi Bernon
dcfba0a2aa dinput/tests: Relax the mouse move count test.
It is prone to spurious failures and we don't really care about it
being precise yet.
2024-01-24 12:17:32 +01:00
Brendan Shanks
c98d0eaac8 ntdll: Only build the main module and ntdll once on Wow64.
Fixes +relay for applications that use multiple threads when running in
new Wow64.
2024-01-24 12:16:44 +01:00
Brendan Shanks
fe880597a1 ntdll: Remove unnecessary NtQueryVirtualMemory call. 2024-01-24 12:16:42 +01:00
Tim Clem
d81c4ce1ba winemac.drv: Detect active handwriting and panel IMEs.
Allows such IMEs that process keyboard input to do so. For instance,
fixes backspace and escape for handwriting methods.
2024-01-23 22:56:53 +01:00
Paul Gofman
7bd070ae86 ntdll: Return STATUS_DEBUGGER_INACTIVE from NtSystemDebugControl() stub. 2024-01-23 22:56:53 +01:00
Tyson Whitehead
9dc1ddf801 dinput: Implement DIPROP_AUTOCENTER.
Autocenter is a default effect playing on the device following power
up or reset. It is disabled by stopping all effects. On at least
some devices (all?) it is a spring effect playing in slot 1.
Capturing Windows USB packets reveals it dinput acquire does (1) a
reset (this enabled autocenter) and, if autocenter is disabled, (2)
a stop all effects (this disabled autocenter).

This logic works regardless of whether autocenter is a spring effect
playing in slot 1 or not. It does mean autocenter can only be set
when the device is not acquired. Testing on Windows reveals setting
autocenter properties while acquired returns DIERR_ACQUIRED even
if the device is exclusively acquired, so this is consistent.
2024-01-23 22:56:53 +01:00
Tyson Whitehead
63562c05f6 dinput/tests: Update tests for DIPROP_AUTOCENTER. 2024-01-23 22:56:53 +01:00
Rémi Bernon
96b823c2d4 dinput/tests: Differentiate missing from broken HID reports. 2024-01-23 22:56:53 +01:00
Rémi Bernon
6c44228c1f winex11: Sync with gdi_display before closing the threads display. 2024-01-23 22:56:53 +01:00
Gabriel Ivăncescu
1571c12129 mshtml: Implement document.lastModified.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-01-23 22:56:53 +01:00
Alexandre Julliard
5113e55139 ntdll/tests: Update todos in context tests for new wow64 mode. 2024-01-23 22:56:49 +01:00
Alexandre Julliard
6085ab8822 ntdll: Use a .seh handler for the process breakpoint. 2024-01-23 16:27:31 +01:00
Alexandre Julliard
1414adfa46 ntdll: Move the process breakpoint to the CPU backends. 2024-01-23 15:53:58 +01:00
Brendan McGrath
9b02ac6d42 gdi32: Ignore Datatype when StartDoc is called. 2024-01-23 15:31:51 +01:00
Martin Storsjö
f6b66e4f87 ntdll: Fix KiUserCallbackDispatcher on arm.
This was broken in 78c2b7dfe2.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-23 15:30:47 +01:00
Rémi Bernon
4f95ad1ad1 dinput/tests: Add a test with a virtual HID touch screen. 2024-01-23 12:20:46 +01:00
Rémi Bernon
aaf34e3f7e include: Add more HID digitizer usage definitions. 2024-01-23 12:20:45 +01:00
Rémi Bernon
abee0d4502 dinput/tests: Add a test with a virtual HID keyboard. 2024-01-23 12:20:45 +01:00
Rémi Bernon
e2f2f680d4 dinput/tests: Add a test with a virtual HID mouse. 2024-01-23 12:20:45 +01:00
Rémi Bernon
3e79b8d6eb dinput/tests: Enforce ordering of concurrent read IRPs. 2024-01-23 12:20:45 +01:00
Rémi Bernon
e2dffb8eb0 dinput/tests: Introduce a new helper to create a foreground window. 2024-01-23 12:20:45 +01:00
Hans Leidekker
1d0551ca49 dssenh: Finalize the hash if necessary in CPVerifySignature(). 2024-01-23 12:20:17 +01:00
Hans Leidekker
7231d4586d bcrypt: Fix private data size in wow64 thunks. 2024-01-23 12:20:10 +01:00
Zhiyi Zhang
28a829a1da win32u: Don't set the high word of keyboard layout to 0xe001 in CJK locales.
The high word of the keyboard layout in CJK locale on Vista+ is the same as the low word, even when
IME is on according to tests in user32 and manual tests on Windows 10.

Fix Super Robo Wars 30 (SteamID: 898750) crash on start when CJK locales are used.
2024-01-23 12:19:13 +01:00
Zhiyi Zhang
0b19f8b2ff user32/tests: Test keyboard layout in CJK locales.
Also tested manually on Windows 10 with Korean, Chinese, and Japanese IME activated.
2024-01-23 12:19:11 +01:00
Rémi Bernon
35ac0e7ac0 setupapi: Don't clobber the original filename if .inf is found. 2024-01-22 21:59:58 +01:00
Piotr Caban
dd44e2e6d6 winex11.drv: Fix xim_set_focus no IC condition check.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56236
2024-01-22 21:59:58 +01:00
Dmitry Timoshkov
a9cc6f0218 oleaut32: Implement OleLoadPictureFile.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2024-01-22 21:37:33 +01:00
Dmitry Timoshkov
176fa9ad27 oleaut32: Factor out stream creation from OleLoadPicturePath.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2024-01-22 21:37:33 +01:00
Dmitry Timoshkov
d451842d16 oleaut32: Do not reimplement OleLoadPicture in OleLoadPicturePath.
punkCaller is ignored by StdPicture ClassFactory implementation anyway.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2024-01-22 21:37:33 +01:00
Rémi Bernon
d5cfbf5da4 user32/tests: Test that WH_KEYBOARD_LL are blocking SendInput. 2024-01-22 16:49:57 +01:00
Rémi Bernon
ee74d202cd user32/tests: Move KEYEVENTF_UNICODE to test_SendInput_keyboard_messages. 2024-01-22 16:49:57 +01:00
Rémi Bernon
a823177ccb win32u: Avoid truncating ToUnicodeEx result if there's room. 2024-01-22 16:49:57 +01:00
Vijay Kiran Kamuju
0d137ddb72 msvcr100: Add _ReaderWriterLock constructor implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46074
2024-01-22 16:49:37 +01:00
Gabriel Ivăncescu
64009b9c9f jscript: Allow garbage collection between different jscript contexts.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-01-22 14:25:54 +01:00
Gabriel Ivăncescu
bc45b43a49 jscript: Make the garbage collector thread-wide rather than per-ctx.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-01-22 14:25:54 +01:00
Gabriel Ivăncescu
39c7950aae jscript: Don't use atomic compare exchange when setting the script ctx.
It already bails out early if the thread_data was already populated, so
only one thread can reach here at one time.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-01-22 14:25:51 +01:00