Commit graph

164630 commits

Author SHA1 Message Date
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
Connor McAdams a5426f6ace uiautomationcore: Call IRawElementProviderAdviseEvents methods when events are added or removed.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-05-26 21:24:14 +02:00
Connor McAdams 973d00db1b uiautomationcore: Implement UiaRemoveEvent.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-05-26 21:24:14 +02:00
Connor McAdams 407ce9a1d5 uiautomationcore: Implement UiaAddEvent.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-05-26 21:24:14 +02:00
Connor McAdams a3e71d4c4b uiautomationcore/tests: Add tests for non-nested node events.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-05-26 21:24:14 +02:00
Connor McAdams bfdda1c311 uiautomationcore: Fix maximum ID comparison for uia_{prop,pattern,control}_info_from_id().
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2023-05-26 21:24:14 +02:00
Rémi Bernon 0e90213ed8 imm32: Silence some unnecessary FIXMEs. 2023-05-26 21:24:14 +02:00
Gabriel Ivăncescu 13e94072dd mshtml: Implement indexed props for classList.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-26 21:24:14 +02:00
Gabriel Ivăncescu e807da918b mshtml: Implement classList's item() method.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-26 21:24:14 +02:00
Gabriel Ivăncescu 808fcf23c7 mshtml: Implement classList's length prop.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-26 21:24:14 +02:00
Gabriel Ivăncescu fcaa9bbedc mshtml: Implement classList's toggle() method.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-26 21:24:14 +02:00
Gabriel Ivăncescu 59f7fbeeb0 mshtml: Implement classList's contains() method.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-26 21:24:14 +02:00
Gabriel Ivăncescu ced7545580 mshtml: Expose the other remaining props for element.classList.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-05-26 21:24:14 +02:00
Alexandre Julliard 71d9f327f0 ntdll: Allocate the ARM64EC code map when the first ARM64X binary is loaded. 2023-05-26 21:24:14 +02:00
Alexandre Julliard 30040cc9d7 ntdll: Also update the entry point address when loading an ARM64X binary. 2023-05-26 21:24:08 +02:00
Jacek Caban c73684e533 win32u: Use syscall interface for all ntgdi functions. 2023-05-26 11:09:34 +02:00
Jacek Caban 28642d2239 win32u: Use syscall interface for more clipping functions. 2023-05-26 11:09:33 +02:00
Jacek Caban 1ac5a2e01a win32u: Use syscall interface for more font functions. 2023-05-26 11:09:32 +02:00
Jacek Caban 9b5c916e4e win32u: Use syscall interface for more font functions. 2023-05-26 11:09:32 +02:00
Jacek Caban 384d34d6fb win32u: Use syscall interface for more GDI object functions. 2023-05-26 11:09:31 +02:00
Jacek Caban 5f5082afc9 win32u: Use syscall interface for more DC functions. 2023-05-26 11:09:30 +02:00
Jacek Caban e4215142f7 win32u: Use syscall interface for DIB functions. 2023-05-26 11:09:30 +02:00
Jacek Caban 859eda026d win32u: Use syscall interface for D3DKMT functions. 2023-05-26 11:09:29 +02:00