1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00
Commit graph

169082 commits

Author SHA1 Message Date
Rémi Bernon
c5e16d2090 user32/tests: Filter the ll-hook messages with accept_message.
Wine sends spurious mouse move messages in some cases, let's ignore
them as it makes tests unreliable otherwise.
2024-01-26 18:11:02 +01:00
Nikolay Sivov
3724385c86 d3d10/effect: Use bitfields for numeric type descriptions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2024-01-26 17:54:33 +01:00
Martin Storsjö
11128e236f wineps.drv: Avoid invalid unaligned accesses.
While armv7 generally tolerates unaligned loads/stores in most
cases, the compiler is free to use the ldrd/strd instructions,
for loading/storing two consecutive 32 bit registers, and this
requires the destination to be aligned to a 4 byte boundary.

When packing a number of variable length structures, make sure
that each actual struct gets aligned at the right address
boundary.

This fixes crashes in DllMain of wineps.drv, when built for
armv7, since 351e58dc2d.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-26 17:54:33 +01:00
Alexandre Julliard
adf5f5fd30 ntdll/tests: Port the exception unwinding tests to ARM. 2024-01-26 17:54:33 +01:00
Alexandre Julliard
32f5efcdb2 ntdll/tests: Port the exception unwinding tests to ARM64. 2024-01-26 17:54:33 +01:00
Alexandre Julliard
35c1cc6c81 ntdll: Clear CONTEXT_UNWOUND_TO_CALL in signal frames. 2024-01-26 17:54:33 +01:00
Aida Jonikienė
81e9ae96f1 localspl: Fix a maybe-uninitialized warning in fill_builtin_form_info(). 2024-01-26 11:02:41 +01:00
Paul Gofman
bd2a2c25f5 winhttp: Always return result at once if available in WinHttpReadData(). 2024-01-26 11:01:50 +01:00
Paul Gofman
fd2534422b winhttp: Always return result at once if available in WinHttpQueryDataAvailable(). 2024-01-26 11:01:50 +01:00
Aida Jonikienė
5529b00a44 opengl32: Add a FIXME when doing a mapped buffer copy.
The copies of mapped buffers introduce significant performance overhead.
2024-01-26 11:00:56 +01:00
Aurimas Fišeras
ebb5bd64a0 po: Update Lithuanian translation. 2024-01-26 10:59:47 +01:00
Brendan McGrath
1e79217fb0 d2d1: Fix double free bug when d2d_geometry_sink_Close fails.
geometry->fill.bezier_vertices was being freed on the failed path in
d2d_geometry_sink_Close and then again when the path geometry was
released (in d2d_geometry_cleanup).

By setting it to NULL after freeing it initially, all other calls
to free it are a no-op.
2024-01-26 10:59:42 +01:00
Brendan McGrath
6d8489a0bb d2d1: Use 24-bit FP precision for triangulate.
This fixes a rendering issue (and ultimately a crash) in PowerPoint when
compiling with GCC 8.

GCC8 doesn't support the `excess-precision=standard` option under the
`#pragma GCC optimize` directive.

This results in unpredictable floating point rounding leading to errors
when inserting segments (with missing edges and/or triangles).

Using 24-bit precision ensures we don't have any excess precision.
2024-01-26 10:59:40 +01:00
Paul Gofman
eb5993a7c6 winex11.drv: Fix wglSwapBuffers() with NULL current context with child window rendering. 2024-01-25 21:59:42 +01:00
Dāvis Mosāns
e5aafd9eed ntdll/tests: Test NtContinue on x86-64.
Co-authored-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2024-01-25 21:06:51 +01:00
Gabriel Brand
12141ad6c5 kernel32: Add string for WSAEADDRNOTAVAIL error. 2024-01-25 21:00:06 +01:00
Gabriel Brand
6361a20c52 server: Return failure in bind if the address is not found. 2024-01-25 21:00:06 +01:00
Gabriel Brand
b7f06a4a19 ws2_32/tests: Test binding UDP socket to invalid address. 2024-01-25 20:55:58 +01:00
Russell Greene
c2d683488e powrprof: Add PowerWriteACValueIndex stub. 2024-01-25 20:48:33 +01:00
Daniel Hill
054678aad0 winex11.drv: Add Dvorak with phantom keys layout.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
2024-01-25 20:30:56 +01:00
Daniel Hill
b5359b7da0 winex11.drv: Improve DetectLayout heuristics.
Dvorak detection would sometimes fallback to Phantom keys, because we
only use seq as a tie breaker greater emphasis on locality is required
for layouts using the same language.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
2024-01-25 20:30:56 +01:00
Daniel Hill
4fb14b5656 winex11.drv: Dvorak should use QWERTY scancodes.
This make dvorak more consistent with X11/Wayland/Windows, qwertz and
azerty layouts having the same physical scancode layout as a qwerty
keyboard and only differing in the labels on the keycaps.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
2024-01-25 20:30:56 +01:00
Bernhard Übelacker
26e383c8df server: Avoid unloading of HKU .Default registry branch.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55000
2024-01-25 20:30:53 +01:00
Alistair Leslie-Hughes
d6a6e1f186 include: Correct KMTQAITYPE values.
Windows SDK skips the value 14 and KMTQAITYPE_DISPLAY_UMDRIVERNAME was assigned
a value of 71 in the SDK but wasn't in the correct order.
2024-01-25 18:01:40 +01:00
Jacek Caban
91d7b084ba kernelbase: Silence -Warray-bounds clang warning. 2024-01-25 17:58:54 +01:00
Jacek Caban
2765825c9e kernelbase: Silence -Wsometimes-uninitialized clang warning. 2024-01-25 17:58:54 +01:00
Jacek Caban
df0726e359 winevdm: Use char type for max length assignment. 2024-01-25 17:58:54 +01:00
Martin Storsjö
6d0fcf64d2 ntdll: Remove dwarf unwinding support for aarch64.
Since recently, unwinding never should need to look at the
unix libs any longer, and as aarch64 requires PE builds, there
should be no need to unwind through any .dll.so files any
longer.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-25 17:46:10 +01:00
Alexandre Julliard
7a5e92124f ntdll: Use a .seh handler for nested exceptions. 2024-01-25 17:43:06 +01:00
Alexandre Julliard
014f020e34 ntdll: Share the nested exception handler across platforms. 2024-01-25 16:17:52 +01:00
Rémi Bernon
6ba584d1e0 user32/tests: Run the mouse hook tests in the separate desktop.
And run SetCursorPos / ClipCursor tests in a separate function, they
don't need hooks or windows.
2024-01-25 11:13:11 +01:00
Rémi Bernon
07d522426a user32/tests: Cleanup the mouse input WM_NCHITTEST / SetCapture tests.
And run them in the dedicated desktop.
2024-01-25 11:13:10 +01:00
Rémi Bernon
2b3b900490 user32/tests: Add an optional hwnd to input messages tests.
And rename keyboard tests to avoid conflicts with mouse tests.
2024-01-25 11:13:08 +01:00
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