Commit graph

164564 commits

Author SHA1 Message Date
Davide Beatrici c0ba1bc9bb winealsa: Use mmdevapi's AudioClient3. 2023-05-30 16:42:12 +02:00
Davide Beatrici a7c23cee02 winepulse: Move AudioClient3 into mmdevapi. 2023-05-30 16:42:12 +02:00
Jacek Caban cd61eee30f ntdll: Get rid of hacks for direct unix calls. 2023-05-30 16:42:12 +02:00
Gabriel Ivăncescu 964f213e19 mshtml/tests: Test RegExp.toString on object with separate RegExp flag props.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-30 16:42:12 +02:00
Gabriel Ivăncescu c0e8f1669f jscript: Throw proper error for out of memory conditions in RegExp.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-30 16:42:12 +02:00
Gabriel Ivăncescu e7b06b0ddd jscript: Throw proper error for unexpected quantifiers in RegExp.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-30 16:42:12 +02:00
Gabriel Ivăncescu 627e5b3bf1 jscript: Return undefined for empty RegExp captures in ES5+ mode.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-30 13:46:18 +02:00
Gabriel Ivăncescu ce453e4210 mshtml: Fix classList toggle() when return value pointer is NULL.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-30 13:46:18 +02:00
Rémi Bernon 4b5311c7e0 explorer: Remove now unnecessary wine_create_desktop entry. 2023-05-30 13:45:47 +02:00
Rémi Bernon 4fcbbf8c9a winex11: Use the user driver interface to create host desktops. 2023-05-30 13:45:45 +02:00
Rémi Bernon e0d3683d89 wineandroid: Use the user driver interface to create host desktops. 2023-05-30 13:45:44 +02:00
Rémi Bernon f7d45533d1 explorer: Call user driver through a new CreateDesktop callback. 2023-05-30 13:45:43 +02:00
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