Commit graph

162838 commits

Author SHA1 Message Date
Eric Pouech aabb4e12bc dbghelp: Use 'wine' as loader on multi-arch configuration.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-03-08 17:49:00 +01:00
Eric Pouech e1f41c0a17 dbghelp/tests: Preserve last error in process_get_kind().
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-03-08 17:49:00 +01:00
Eric Pouech 2d3b6d03fe dbghelp/tests: Better use global variables.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-03-08 17:49:00 +01:00
Rémi Bernon 3136115324 imm32/tests: Test ImmGetIMEFileName with the installed IME. 2023-03-08 17:49:00 +01:00
Rémi Bernon d0cc3ded08 imm32/tests: Test ImmGetDescription with the installed IME. 2023-03-08 17:49:00 +01:00
Rémi Bernon 16222f2de6 imm32/tests: Redirect IME function to the main module.
For easier testing and to wokaround some Windows IME caching mechanism
that prevent the IME module from reloading.
2023-03-08 17:49:00 +01:00
Rémi Bernon d07a5e6b91 imm32/tests: Test ImmInstallIMEW with an actual IME. 2023-03-08 17:49:00 +01:00
Rémi Bernon 2d39dcafc8 makedep: Support resource files for embedded TESTDLL. 2023-03-08 17:49:00 +01:00
Rémi Bernon d2e79b0905 makedep: Rename TESTDLL generated .res to avoid conflicts. 2023-03-08 17:49:00 +01:00
Rémi Bernon b46ad448ab imm32/tests: Add broken test results for w10v22H2. 2023-03-08 17:49:00 +01:00
Max Figura 1a9a9f9bd6 wined3d: Move the WINED3D_RS_WRAP3 stub to wined3d_device_apply_stateblock. 2023-03-08 17:49:00 +01:00
Max Figura cb9dddbdae wined3d: Move the WINED3D_RS_WRAP4 stub to wined3d_device_apply_stateblock. 2023-03-08 17:49:00 +01:00
Max Figura 3809a31258 wined3d: Move the WINED3D_RS_WRAP5 stub to wined3d_device_apply_stateblock. 2023-03-08 17:49:00 +01:00
Max Figura cbbf1f054c wined3d: Move the WINED3D_RS_WRAP6 stub to wined3d_device_apply_stateblock. 2023-03-08 17:49:00 +01:00
Max Figura 9933832a13 wined3d: Move the WINED3D_RS_WRAP7 stub to wined3d_device_apply_stateblock. 2023-03-08 17:49:00 +01:00
Mohamad Al-Jaf 2af11b6ee7 pdh/tests: Add PdhVbGetDoubleCounterValue() tests. 2023-03-08 17:49:00 +01:00
Mohamad Al-Jaf e1c59cc562 pdh: Implement PdhVbGetDoubleCounterValue().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54618
2023-03-08 17:49:00 +01:00
Brendan Shanks d7d94ed0df kernelbase: Implement DiscardVirtualMemory(). 2023-03-08 17:49:00 +01:00
Martin Storsjö 7f7f06fe61 ntdll: Handle aarch64 pointer authentication in unwind info.
These were docmented in [1] (with the user-facing name of the opcode
adjusted later in [2]).

Since MSVC 2022, the precompiled runtimes (both runtimes such as
vcruntime140*.dll and the statically linked code from e.g. libcmt.lib)
are built with pointer authentication enabled.

To correctly handle unwinding through such functions, even on HW that
don't support the pointer authentication mechanism itself, wine needs
to at least be aware of it (for handling the cases with packed unwind
info with CR==2 simiarly to CR==3).

This patch has been tested on Linux on HW supporting pointer
authentication too, with binaries built with MSVC.

[1] f510c83085
[2] cac237d3f3
2023-03-08 17:49:00 +01:00
Alexandre Julliard 26163c10bb ntdll: Don't touch the top of the 32-bit thread stack. 2023-03-08 17:48:55 +01:00
Alexandre Julliard cc0ca49a46 ntdll: Pass the WoW context to the server on ARM64. 2023-03-08 12:43:20 +01:00
Alexandre Julliard fa47ea7400 server: Determine the native thread context flags on the client side. 2023-03-08 12:43:20 +01:00
Alexandre Julliard eccf92996c ntdll: Always call Wow64PrepareForException when dispatching an exception. 2023-03-08 12:43:20 +01:00
Alexandre Julliard 4d217cb274 maintainers: Assume maintainership of ARM platforms. 2023-03-08 09:16:12 +01:00
Mohamad Al-Jaf 50f5f9af1c windows.perception.stub: Implement ISpatialSurfaceObserverStatics2::IsSupported().
Needed by the VR games Forewarned and Überlaüfer.
2023-03-07 18:36:54 +01:00
Mohamad Al-Jaf 4f9a79bcea windows.perception.stub/tests: Add ISpatialSurfaceObserverStatics2::IsSupported() tests. 2023-03-07 18:36:54 +01:00
Mohamad Al-Jaf 006bc33c57 windows.perception.stub: Add ISpatialSurfaceObserverStatics2 stub interface. 2023-03-07 18:36:54 +01:00
Mohamad Al-Jaf b7d55543d6 windows.perception.stub: Add ISpatialSurfaceObserverStatics stub interface. 2023-03-07 18:36:54 +01:00
Mohamad Al-Jaf ffb664f1c5 windows.perception.stub: Add stub DLL. 2023-03-07 18:36:54 +01:00
Mohamad Al-Jaf 79a7c7ca40 include: Add windows.perception.spatial.surfaces.idl file. 2023-03-07 18:36:26 +01:00
Mohamad Al-Jaf 16b3b79105 include: Add windows.graphics.directx.idl file.
Needed by windows.perception.spatial.surfaces.idl.
2023-03-07 18:36:25 +01:00
Mohamad Al-Jaf 9065c6637e include: Add windows.perception.spatial.idl file.
Needed by windows.perception.spatial.surfaces.idl.
2023-03-07 18:36:23 +01:00
Francois Gouget 6da1e08dba t2embed/tests: Fix the TTGetEmbeddingType() test in UTF-8 locales.
A screen-compatible memory DC uses a TrueType font by default in UTF-8
locales.
2023-03-07 18:35:20 +01:00
Rémi Bernon bd7a1a4d66 maintainers: Assume maintainership of IME support. 2023-03-07 17:25:08 +01:00
Francois Gouget ed6ab3222e dbghelp/tests: Let the tests run on Windows 7, 8 and 10 <= 1607.
Provide a fallback if IsWow64Process2() is not available.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54605
2023-03-07 17:25:08 +01:00
Francois Gouget 145e3c758b riched20/tests: Fix a typo in a comment. 2023-03-07 17:25:08 +01:00
Francois Gouget 5f08c8fbcc winscard: Fix the spelling of a function parameter. 2023-03-07 17:25:08 +01:00
Francois Gouget 6c6cc2cebc msado15: Fix the spelling of a comment. 2023-03-07 17:25:08 +01:00
Jinoh Kang f54a1dac64 riched20/tests: Don't specify DT_WORDBREAK in _check_txgetnaturalsize().
Today, test_TxGetNaturalSize() creates a pop-up window with a fixed size
(extent) of 100 x 100.  The test function then proceeds to compute the
natural size of rich edit control that fits the sample text
"TestSomeText" and compare it to the RECT calculated by DrawText.

Apparently, this test fails if the width of the sample text
"TestSomeText" exceeds the width of the test window's client area.  In
this case, DrawText() with DT_WORDBREAK breaks the text into the two
lines due to text wrapping; however, Rich Edit's
ITextServices::TxGetNaturalSize implementation does not seem to perform
text wrapping on overflow.  This results in extent mismatch.

(Note that the test may either succeed or fail depending on the current
font used for DEFAULT_GUI_FONT, which defaults to Tahoma according to
Microsoft's documentation.  To reproduce this failure, it may be
necessary to switch fonts or change the width of the pop-up window.)

Fix this by omitting the DT_WORDBREAK flag for the DrawText() call in
_check_txgetnaturalsize().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54637
2023-03-07 17:25:08 +01:00
Rémi Bernon eca1e4ea36 winex11: Initialize IO_STATUS_BLOCK in X11DRV_GetICMProfile.
To avoid invalid writes on WOW64 Nt calls.
2023-03-07 17:25:08 +01:00
Rémi Bernon 647e20a9ff win32u: Initialize IO_STATUS_BLOCK in rawinput add_device.
To avoid invalid writes on WOW64 Nt calls.
2023-03-07 17:25:08 +01:00
Rémi Bernon ec5d9f6413 win32u: Initialize IO_STATUS_BLOCK in load_directory_fonts.
To avoid invalid writes on WOW64 Nt calls.
2023-03-07 17:25:08 +01:00
Jinoh Kang 3fe15349d3 riched20: Implement ITextDocument::Freeze and ITextDocument::Unfreeze.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54617
2023-03-07 17:25:08 +01:00
Jinoh Kang 2027be7e03 riched20: Don't assume that TxDraw preserves the device context's brush selection.
Today, RichEditWndProc_common assumes that ITextServices::TxDraw
preserves the brush selection of the given device context.  However,
this invariant may be broken by misbehaving embedded OLE objects in the
text document.

Fix this by not assuming that the return value of the second
SelectObject() call equals the brush passed to the first SelectObject()
call in RichEditWndProc_common's WM_PAINT / WM_PRINTCLIENT case.
2023-03-07 17:25:08 +01:00
Jinoh Kang 3105fad82b riched20/tests: Test for ITextDocument::Freeze and ITextDocument::Unfreeze. 2023-03-07 17:25:08 +01:00
Alexandre Julliard 63a781de1d wow64: Declare exported functions in winternl.h. 2023-03-07 17:25:08 +01:00
Alexandre Julliard c244fe3d27 wow64: Keep track of APC stack frames, similarly to user callback frames.
And use the appropriate frame to restore the context in NtContinue.
2023-03-07 17:25:08 +01:00
Alexandre Julliard 96841d0358 wow64: Push a valid return address when calling KiRaiseUserExceptionDispatcher. 2023-03-07 17:25:08 +01:00
Alexandre Julliard 419e4d69d6 wow64: In system calls always return the status from Wow64SystemServiceEx. 2023-03-07 17:25:08 +01:00
Alexandre Julliard 972a1192e0 ntdll/tests: Allow zero size return for NtQueryDirectoryObject on Wow64. 2023-03-07 11:54:13 +01:00