Commit graph

169110 commits

Author SHA1 Message Date
Alexandre Julliard 658a0665d4 ntdll: Use the system setjmp/longjmp for exceptions in Unix libs. 2024-01-29 17:18:58 +01:00
Alex Henrie b87bd5e9b0 krnl386: Emulate the VGA status register.
Sega Bug uses it as a timer.
2024-01-29 17:08:10 +01:00
Alexandros Frantzis fe1f3e277d winewayland.drv: Track and apply latest window cursor on pointer enter.
Keep track of the window cursor set for each surface and apply it when
the pointer enters the corresponding surface. This fixes a problem where
due to transient disagreements between win32 pointer focus and Wayland
pointer focus a cursor update may be lost. For example:

1. Assume existing cursor C1.
2. Window is created beneath cursor.
3. The SetCursor(hwnd, C2) driver callback is called, but because the
   wl_pointer hasn't entered the Wayland surface yet we don't update
   the wl_pointer cursor.
4. wl_pointer enters the surface, we apply the latest cursor we know
   about, which is C1.
5. Since no change in cursor window occurs, we don't get any
   further SetCursor(hwnd, C2) callbacks, so we get stuck with C1.

This commit fixes the problem by tracking the per-surface HCURSOR in
step 3, regardless of whether the cursor is actually applied. So, in
step 4 we can use that HCURSOR for the surface.

This change also fixes some cases of our mouselook heuristics not
kicking in properly due to missing a SetCursor(hwnd, NULL) in the
manner described above.
2024-01-29 17:08:10 +01:00
Eric Pouech 8169c4d040 dmime/tests: Add some tests about end-points.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-29 10:42:48 +01:00
Eric Pouech 7d1cfb9e01 dmime: Remove unused fields in segment.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-29 10:42:48 +01:00
Eric Pouech 1bdf94a409 dmime: Fix IDirectMusicAudioPath::GetObjectInPath() prototype.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-29 10:42:48 +01:00
Eric Pouech b2441ad699 dmime/tests: Add some tests for loops on wave tracks.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-29 10:42:48 +01:00
Eric Pouech 7aef55a996 dmime/tests: Fix copy & paste errors.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-29 10:42:48 +01:00
Alexandre Julliard 2e9da0ba24 winsta: Start time is an input parameter in WinStationGetProcessSid.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56256
2024-01-29 10:42:48 +01:00
Alexandre Julliard e5becbf6a8 configure: Reset host flags in all cross-compiler error paths. 2024-01-29 10:42:48 +01:00
Alexandre Julliard c963c4141a Release 9.1. 2024-01-26 23:56:23 +01:00
Zebediah Figura 34232874ad wined3d: Collapse some trivially nested ifs into a single condition. 2024-01-26 23:47:16 +01:00
Zebediah Figura d219903c61 wined3d: Check for WINED3DUSAGE_LEGACY_CUBEMAP instead of checking the GL texture target.
This check was introduced in 4640be8dc8. At that point the only way for that
condition to be false was for a cube map texture.

It's not clear why cube maps are relevant here; we have no tests for this, but
it seems most expedient to just preserve the intent of the check.
2024-01-26 23:47:14 +01:00
Zebediah Figura df70800b12 wined3d: Set the tex_type field of the FFP fragment settings from the resource's GL type. 2024-01-26 23:47:13 +01:00
Zebediah Figura 36597df656 wined3d: Check the wined3d resource type and usage in find_ps_compile_args(). 2024-01-26 23:47:13 +01:00
Zebediah Figura dc15413585 d3d11/tests: Add a test for shader stencil export.
Ported from b8ab71e4dc in vkd3d by Conor McCarthy.
2024-01-26 23:47:05 +01:00
Zebediah Figura 775812ab11 d3d11: Report support for shader stencil export if available. 2024-01-26 23:47:04 +01:00
Zebediah Figura 5efd4b64f6 wined3d: Implement shader stencil export for GL. 2024-01-26 23:47:04 +01:00
Zebediah Figura 0ef730529a wined3d: Report VK_EXT_shader_stencil_export availability to vkd3d_shader_compile(). 2024-01-26 23:47:04 +01:00
Zebediah Figura a586fd080d d3d11: Implement D3D11_FEATURE_D3D11_OPTIONS2. 2024-01-26 23:47:04 +01:00
Jacek Caban 4d2d6666db devenum: Use switch statements for moniker type handling.
Fixes -Wsometimes-uninitialized clang warnings by using DEFAULT_UNREACHABLE.
2024-01-26 18:30:07 +01:00
Rémi Bernon 68f8b53d69 winegstreamer: Use an array for the audio decoder input types. 2024-01-26 18:30:01 +01:00
Rémi Bernon c65703eac7 winegstreamer: Use MFCreateAudioMediaType in the AAC decoder. 2024-01-26 18:30:01 +01:00
Rémi Bernon 42c96b9c8f winegstreamer: Fix reading MF_MT_USER_DATA into HEAACWAVEFORMAT.
Fixes 681d201462. The winegstreamer
private declaration of HEAACWAVEINFO previously didn't include the
WAVEFORMATEX member as it should.
2024-01-26 18:29:59 +01:00
Giovanni Mascellani 54217dab6d wined3d: Expose the image view usage for non-default views. 2024-01-26 18:11:51 +01:00
Giovanni Mascellani 7663be90ff wined3d: Expose the image view usage for null views. 2024-01-26 18:11:51 +01:00
Rémi Bernon 52a4d9e321 user32/tests: Tests clicking through window with SetWindowRgn. 2024-01-26 18:11:05 +01:00
Rémi Bernon 71201815bc user32/tests: Test clicking through attribute-layered windows. 2024-01-26 18:11:05 +01:00
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