Commit graph

164852 commits

Author SHA1 Message Date
Rémi Bernon
0edc848bee explorer: Don't call driver create_desktop if desktop name is "root". 2023-05-30 13:45:42 +02:00
Rémi Bernon
dbb63987f0 explorer: Use root window if driver doesn't implement create_desktop. 2023-05-30 13:45:42 +02:00
Rémi Bernon
f9c1b6af12 explorer: Load graphics driver before calling CreateDesktopW. 2023-05-30 13:45:42 +02:00
Rémi Bernon
8b5bdb10d5 win32u: Call SetDesktopWindow when desktop window is successfully created.
When the default desktop window is created, its parent is always NULL,
and SetDesktopWindow is never called here.
2023-05-30 13:45:39 +02:00
Rémi Bernon
15dfe2ed2d win32u: Rename user driver CreateDesktopWindow entry to SetDesktopWindow.
This doesn't create anything, but instead notifies the user driver of
the current desktop window, either when it is created, or when a thread
calling NtUserGetDesktopWindow receives the current desktop window.
2023-05-30 13:45:33 +02:00
Georg Lehmann
8190aa25a0 winevulkan: Update to VK spec version 1.3.251. 2023-05-30 12:25:25 +02:00
Rémi Bernon
26c6386de9 server: Move set_cursor desktop local variable to wider scope. 2023-05-30 12:25:25 +02:00
Rémi Bernon
61dbfea452 server: Assume the internal clip message to be WM_WINE_CLIPCURSOR. 2023-05-30 12:25:25 +02:00
Alistair Leslie-Hughes
d476a4cad7 include: Use STDMETHOD when returning HRESULT. 2023-05-30 12:24:21 +02:00
Alistair Leslie-Hughes
cd8c46f9e4 xactengine: Correct interfaces for IXACT3Cue. 2023-05-30 12:24:02 +02:00
Paul Gofman
fce615a2c3 ntdll: Support MEM_PRESERVE_PLACEHOLDER in NtUnmapViewOfSectionEx(). 2023-05-30 12:12:09 +02:00
Paul Gofman
3e3ca7dd28 ntdll: Validate flags in NtUnmapViewOfSectionEx(). 2023-05-30 12:12:09 +02:00
Paul Gofman
4806b1c226 kernelbase/tests: Add tests for MEM_PRESERVE_PLACEHOLDER with UnmapViewOfFile2(). 2023-05-30 12:12:09 +02:00
Paul Gofman
cd8f0fbac8 ntdll: Factor out unmap_view_of_section() function. 2023-05-30 12:12:09 +02:00
Paul Gofman
03096546c9 ntdll: Support MEM_COALESCE_PLACEHOLDERS in NtFreeVirtualMemory(). 2023-05-30 12:12:09 +02:00
Alexandre Julliard
d5f23441ad ntdll: Use nameless unions/structs for IO_STATUS_BLOCK. 2023-05-30 12:12:09 +02:00
Alexandre Julliard
c3352feb83 ntdll: Use nameless unions/structs for CPU-related data. 2023-05-30 12:12:09 +02:00
Alexandre Julliard
65edf1925f ntdll: Use nameless unions/structs for loader data. 2023-05-30 12:12:09 +02:00
Alexandre Julliard
7f088b0b13 ntdll: Use x18 for the TEB on ARM64. 2023-05-30 12:12:09 +02:00
Alexandre Julliard
62173699c3 include: Don't align the stack for PE builds. 2023-05-30 12:12:09 +02:00
Jinoh Kang
d0d472bb3e ntdll: Don't hard-code DLL manifest resource ID when looking up dependency assembly.
This allows any manifest resource IDs (e.g.,
ISOLATIONAWARE_MANIFEST_RESOURCE_ID) to be recognized when looking up
the assembly manifest of a dependency.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18889
2023-05-29 19:46:33 +02:00
Jinoh Kang
2f78a8f2bb kernel32/tests: Test loading assembly manifest resource inside dependencies. 2023-05-29 19:46:33 +02:00
Jinoh Kang
d992e2d0aa ntdll: Move ACTCTX lpResourceName validation to RtlCreateActivationContext.
This prevents passing NULL resource name to get_manifest_in_module().
2023-05-29 19:46:32 +02:00
Jinoh Kang
b9507d0e5f kernel32/tests: Test setting lpResourceName to NULL for CreateActCtxW. 2023-05-29 19:46:32 +02:00
Jinoh Kang
f0fcce14a7 kernel32/tests: Remove test for ACTCTX_FLAG_HMODULE_VALID with hModule = NULL case.
Today, the test scenario "ACTCTX_FLAG_HMODULE_VALID but hModule if not
set" is broken and unreliable.  This problem is not evident in WineHQ
batch test runs; rather, the test failure seems to only be triggered
when the kernel32:actctx test is run in isolation.

When the flag ACTCTX_FLAG_HMODULE_VALID is specified in ACTCTXW but
hModule is set to NULL, CreateActCtxW() may encounter different failure
modes depending on the test executable file.  Error codes observed so
far include ERROR_SXS_CANT_GEN_ACTCTX and ERROR_SXS_MANIFEST_TOO_BIG.

When the aforementioned test reports ERROR_SXS_CANT_GEN_ACTCTX on
Windows, an event is recorded in the Windows Event Log as follows:

- Log Name:    Application
- Source:      SideBySide
- Event ID:    59
- Level:       Error
- Description:

  Activation context generation failed for "<path..>\kernel32_test.exe".Error in manifest or policy file "<path..>\kernel32_test.exe" on line 0.
  Invalid Xml syntax.

It appears that the inconsistent failure was caused by Windows trying to
interpret the main executable file of the current process as an XML
manifest file.  This fails due to one or more of the following reasons:

- ERROR_SXS_CANT_GEN_ACTCTX: A valid PE executable that starts with the
  "MZ" signature is not a valid XML file.

- ERROR_SXS_MANIFEST_TOO_BIG (or ERROR_NOT_ENOUGH_MEMORY): The
  executable's size may exceed the limit imposed by the manifest parser.
  This is much more likely for binaries with debugging symbols.

  Meanwhile, winetest.exe bundles a stripped version of the test
  executable (kernel32_test-stripped.exe), which is often smaller than
  the original executable (not stripped).  This probably explains why
  the problem was not visible in batch test runs.

Fix this by removing the failing test entirely.
2023-05-29 19:46:30 +02:00
Jacek Caban
b601e3fa97 win32u: Use syscall interface for all exports. 2023-05-29 11:37:09 +02:00
Jacek Caban
da4663d640 win32u: Don't return full OUTLINETEXTMETRICW from __wine_get_file_outline_text_metric. 2023-05-29 11:37:08 +02:00
Jacek Caban
3dbe180ea5 win32u: Extend NtGdiSetDIBitsToDeviceInternal for SetDIBits implementation. 2023-05-29 11:37:08 +02:00
Jacek Caban
ab88c7cbb1 win32u: Implement NtGdiIcmBrushInfo and use it instead of __wine_get_brush_bitmap_info. 2023-05-29 11:37:07 +02:00
Jacek Caban
0492108ae8 win32u: Use syscall interface for all ntuser functions. 2023-05-29 11:37:06 +02:00
Zhiyi Zhang
f9e77ad77c gdiplus: Support playing back pen custom end line cap.
Fix Cafe Stella (SteamID: 1829980) Flowchart crashes once there are 2 things on it.
2023-05-29 11:26:07 +02:00
Zhiyi Zhang
fea3a7447a gdiplus: Support playing back pen custom start line cap. 2023-05-29 11:26:07 +02:00
Zhiyi Zhang
78261ecb98 gdiplus: Support recording pen custom end line cap. 2023-05-29 11:26:07 +02:00
Zhiyi Zhang
abdd45c41a gdiplus: Support recording pen custom start line cap. 2023-05-29 11:26:06 +02:00
Zhiyi Zhang
f76caee6e7 gdiplus/tests: Add pen custom line cap record and play back tests. 2023-05-29 11:26:06 +02:00
David Kahurani
c1da4fb167 gdiplus: Handle Windows style newline.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54962
Signed-off-by: David Kahurani <k.kahurani@gmail.com>
2023-05-29 11:25:50 +02:00
Nikolay Sivov
7ab7e299c3 ole32/git: Use CRT allocation functions. 2023-05-29 11:25:40 +02:00
Nikolay Sivov
0f72487b25 ole32/filemoniker: Use CRT allocation functions. 2023-05-29 11:25:39 +02:00
Nikolay Sivov
b3c773af71 ole32/compositemoniker: Use CRT allocation functions. 2023-05-29 11:25:37 +02:00
Nikolay Sivov
873d53d864 ole32/itemmoniker: Use CRT allocation functions. 2023-05-29 11:25:35 +02:00
Nikolay Sivov
894f1cde4a ole32/pointermoniker: Use CRT allocation functions. 2023-05-29 11:25:33 +02:00
Nikolay Sivov
a9d3d435bc ole32/classmoniker: Use CRT allocation functions. 2023-05-29 11:25:32 +02:00
Nikolay Sivov
d4cb70107d ole32/antimoniker: Fix Enum() return error code. 2023-05-29 11:25:30 +02:00
Nikolay Sivov
8e4b95e43e ole32/antimoniker: Use CRT allocation functions. 2023-05-29 11:25:28 +02:00
Rémi Bernon
34b990fe17 winegstreamer: Set the default H264 caps profile to "baseline".
Some elements such as openh264dec require it to be present.
2023-05-29 11:24:30 +02:00
Rémi Bernon
2a2ed45566 winegstreamer: Only warn on wg_transform input buffer push errors.
Some GStreamer plugins such as openh264 return spurious errors when
running the tests. They pass the tests successfull if we simply ignore
them.

It does not make much difference with returning the error, as they are
not supposed to happen anyway, and most of the time the MFT clients
don't expect or handle errors.
2023-05-29 11:24:28 +02:00
Rémi Bernon
0c760ef70d winegstreamer: Forbid vaapidecodebin when looking for a specific element.
This will eventually fallback to vaapih264dec and similar decoders if
VA-API plugins are indeed available.
2023-05-29 11:24:11 +02:00
Davide Beatrici
4a2cebad30 wined3d: Fix uninitialized variable warning.
dlls/wined3d/context_vk.c:2377:42: warning: ‘null_binding’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 2377 |                     *null_buffer_binding = b->binding = null_binding;
      |                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-05-29 11:23:55 +02:00
Alexandre Julliard
9ffeb2622d Release 8.9. 2023-05-26 22:23:00 +02:00
Nikolay Sivov
b62f3c881b d2d1: Improve resource properties check when creating a bitmap. 2023-05-26 21:24:14 +02:00