Commit graph

157630 commits

Author SHA1 Message Date
Rémi Bernon 2692e59f46 windows.gaming.input: Implement stub IGamepad2 interface.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-08 15:04:56 +02:00
Rémi Bernon e8b06de490 include: Add Windows.Gaming.Input.IGamepad2 interface declaration.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-08 15:04:56 +02:00
Rémi Bernon 622d98b74a windows.gaming.input: Consistently use FIXME for E_NOINTERFACE messages.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-08 15:04:55 +02:00
Paul Gofman d0a3248e7a winhttp/tests: Add tests for closing web socket with pending operations.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Paul Gofman 1b766caa48 winhttp: Support abort in task_socket_close().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Paul Gofman 55425e85ab winhttp: Abort websocket IO on handle close.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Paul Gofman 3eda59afcb winhttp: Replace pending read cancel in WinHttpWebSocketClose() with a generic cancel_queue().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Paul Gofman 66ff3594c4 winhttp: Fix dwResult field in websocket receive error result.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Paul Gofman 3d199dd92e winhttp: Implement reference counting for tasks.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Paul Gofman 5d2f2797e3 winhttp: Keep task in queue until completion.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-06-08 15:04:38 +02:00
Alexandre Julliard 5dee0ed755 kernelbase: Add NORM_IGNORENONSPACE support in LCMapStringEx().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36720
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-08 15:02:30 +02:00
Zebediah Figura 8c1c83dfdf wined3d: Cap the maximum reported VRAM, not the current reported VRAM.
That is, subtract the currently used memory from the capped maximum, so that
creating textures will report that available VRAM has decreased. Drivers on
Windows seem to match this behaviour (at least NVidia and WARP), although they
vary on where the cap is set.

This fixes test failures in test_vidmem_accounting() for cards with over 4 GiB
of VRAM.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-08 11:13:04 +02:00
Jacek Caban eae27293ba user32: Remove no longer needed helpers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-08 10:50:15 +02:00
Jacek Caban 915ac1c197 user32: Use a critical section in RegisterUserApiHook.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-08 10:50:15 +02:00
Jacek Caban 2a3b4c9bd7 win32u: Move NtUserLockWindowUpdate implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-08 10:50:14 +02:00
Jacek Caban db8f643756 win32u: Don't call CopyImage with user lock in set_class_long.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-08 10:50:14 +02:00
Jacek Caban 40cda88021 win32u: Don't call CopyImage with user lock in NtUserRegisterClassExWOW.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53082
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-08 10:50:14 +02:00
Rémi Bernon 9f3eb4b7f0 winegstreamer: Return void from align_video_info_planes.
Some older GStreamer versions return void from gst_video_info_align.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-08 10:49:48 +02:00
Nikolay Sivov 4ecf938d67 d3d11: Do not return uninitialized values on Map() failure.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-08 10:49:33 +02:00
Zebediah Figura d95780ba39 wined3d: Parse the eval_centroid opcode.
This fixes rendering of trees and other objects in SnowRunner with the Vulkan
renderer.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-07 19:42:24 +02:00
Dmitry Timoshkov dd00c2075f d2d1: Add partial support for image brushes.
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-06-07 19:42:24 +02:00
Torge Matthies 00012d3381 msvcp90: Fix segfault in bad_alloc exception default constructor.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-07 19:42:24 +02:00
Jacek Caban b31e671a45 vbscript: Use return_bool in more places.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 19:42:24 +02:00
Jacek Caban 6010e6b8cb jscript: Correctly handle deleted entries in iterate_map.
Based on patch by Gabriel Ivăncescu.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 19:37:11 +02:00
Gabriel Ivăncescu bae77953ed jscript: Use LIST_FOR_EACH_ENTRY_SAFE to clear Map and Set objects.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 19:37:11 +02:00
Jacek Caban 34aeef628f jscript/tests: Add test for releasing script context objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 19:37:11 +02:00
Alexandre Julliard 6f485a361f atl: Support escaped quotes in registrar scripts.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-07 19:37:11 +02:00
Alexandre Julliard 1e52895ef7 kernelbase: Implement IsNLSDefinedString().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-07 16:57:26 +02:00
Martin Storsjö 94f7f52dac ntdll: Take ControlPcIsUnwound into account on arm64 too.
This is the same modification as the previous patch, applied on arm64.
It doesn't change the outcome for any of my tests though.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-06-07 15:27:21 +02:00
Martin Storsjö d007c91d46 ntdll: Use ControlPcIsUnwound for the RtlVirtualUnwind pc parameter in virtual_unwind.
Don't just use ControlPcIsUnwound for picking which RUNTIME_FUNCTION
to use, but also use it for adjusting the pc value that is passed
to RtlVirtualUnwind.

This fixes one testcase (that I had missed to build and run before),
where the pc points at the start of an epilogue (which would mean
that no handler is returned from RtlVirtualUnwind). By taking
ControlPcIsUnwound and adjusting the pc pointer, the unwind handler
is returned and executed.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-06-07 15:27:19 +02:00
Martin Storsjö 2d43653a2e ntdll: Add SEH unwind info in ARM assembly functions/trampolines.
Clang generates SEH unwind info on ARM in both MSVC and mingw mode
since Clang 15. The unwind info gets which gets enabled automatically
by building with a new enough compiler.

For functions/trampolines that are implemented in assembly, the unwind
information needs to be provided by hand - in particular for cases
where unwinding should be diverted.

Contrary to AArch64, Clang got SEH assembler directives directly from
the start when SEH was implemented (when the __SEH__ compiler define
gets set), so there's no need for compiler version checks (like for
AArch64 in include/wine/asm.h), but the default check for __SEH__
works fine for enabling the __ARM_SEH() macro.

Use a custom unwind opcode in the private opcode space for unwinding
to a specific CONTEXT instead of up to the caller. (Contrary to
AArch64, there's no specific unwind opcode for restoring a full
CONTEXT, but the unwind opcode space does have a couple
unallocated values marked as "available", which can be used
for vendor specific needs here.)

This fixes unwinding in ARM PE builds.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-06-07 15:27:18 +02:00
Jacek Caban 9a8fdc724b mmdevapi: Remove android from default driver list.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:26:08 +02:00
Jacek Caban 5e73717557 wineandroid: Build with msvcrt.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:36 +02:00
Jacek Caban 84bed157e8 win32u: Use public name for SetThreadDpiAwarenessContext.
To allow using it in drivers.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:34 +02:00
Jacek Caban ca4c671677 wineandroid: Use unixlib interface for register_window_callback.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:34 +02:00
Jacek Caban f07ebeca07 wineandroid: Move device thread to dllmain.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:34 +02:00
Jacek Caban 196b4e5916 wineandroid: Directly use ntdll instead of kernel32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:34 +02:00
Jacek Caban 08fff518c6 wineandroid: Use libc for memory allocation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:34 +02:00
Jacek Caban 4f09c54887 wineandroid: Move wine_create_desktop_to dllmain.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:33 +02:00
Jacek Caban 2801436afe wineandroid: Move DllMain to separated file.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:33 +02:00
Jacek Caban abb69b8dd0 wineandroid: Use pthread for surface locking.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:33 +02:00
Jacek Caban f9e2dac140 wineandroid: Use pthread for window data locking.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:33 +02:00
Jacek Caban 7aaa88f821 wineandroid: Use pthread for locking in opengl.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2022-06-07 15:25:32 +02:00
Piotr Caban 47847a2064 d3dx10/tests: Add D3DX10CreateAsyncTextureInfoProcessor tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban 4537fbca8d d3dx10: Add D3DX10CreateAsyncTextureInfoProcessor implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban a2521a90f4 d3dx10: Share code for resource data loading.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban 099fb5fad1 d3dx10: Share code for file data loading.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban c9e7db923a d3dx11: Use CRT memory allocators.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban 9bc80fbf87 d3dx10: Use CRT memory allocators.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Alexandre Julliard acf815fd8a faudio: Import upstream release 22.06.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-07 08:17:41 +02:00