Commit graph

168515 commits

Author SHA1 Message Date
Fabian Maurer
c6f049fc33 coml2: Move GetConvertStg from ole32. 2023-12-01 18:51:25 +01:00
Fabian Maurer
53c0a31b28 coml2: Add dll and move code from ole32/memlockbytes.c. 2023-12-01 18:51:25 +01:00
Alex Henrie
69d815407d gdiplus: Use CRT allocation functions. 2023-12-01 18:48:35 +01:00
Jacek Caban
a3f4878f52 mshtml: Return failure in IHTMLDocument2::put_URL for detached documents. 2023-12-01 18:48:10 +01:00
Jacek Caban
4aad315a3f mshtml: Return failure in IHTMLDocument2::get_URL for detached documents. 2023-12-01 18:48:10 +01:00
Jacek Caban
58d4f541c0 mshtml/tests: Add detached documents handling tests. 2023-12-01 18:48:10 +01:00
Gabriel Ivăncescu
068f244063 mshtml: Remove the inner window ref from the doc only when it is actually unlinked. 2023-12-01 18:48:10 +01:00
Gabriel Ivăncescu
1593f2f508 mshtml/tests: Improve the iframe navigation test.
It was confusing before since it made it seem like it might use the outer
window, while in fact the document is unchanged on native. Now the "new"
doc is used for navigating, since it's already checked to be the same as
the iframes_doc (but that test fails in wine and is todo_wine).
2023-12-01 18:48:08 +01:00
Zebediah Figura
5b60f4649b wined3d: Set d3d 1-9 textures in the state as SRVs.
The idea is to reuse the existing code to handle SRVs, which simplifies the GL
code and essentially allows the Vulkan code to work "for free" (which is to say,
by writing this patch, rather than by adding support for flat textures to the
Vulkan renderer.)

This is a large patch; it consists the following parts:

* Create identity SRVs for d3d 1-9 textures. Store those in
  state->shader_resource_view instead of in state->texture.

* (Re)use wined3d_context_gl_bind_shader_resources() instead of state_sampler()
  to bind them.

  - Introduce code to that function to handle FFP textures.

  - Bind the sRGB texture if necessary in wined3d_shader_resource_view_gl_bind.

* (Re)use context_gl_load_shader_resources() instead of
  context_preload_textures() to load them.

  - Introduce code to that function to handle FFP textures.

  - Load the sRGB texture if necessary.

  - Port the SRV/RTV feedback loop check from context_preload_textures().

* Invalidate STATE_GRAPHICS_SHADER_RESOURCE_BINDING in places that now need to
  account for texture binding being guarded by that state instead of
  STATE_SAMPLER.

  Transitioning the remaining users of STATE_SAMPLER to
  STATE_GRAPHICS_SHADER_RESOURCE_BINDING, and removing STATE_SAMPLER, is left
  for future patches.
2023-12-01 18:46:23 +01:00
Zebediah Figura
ff30b54791 d3d9: Use wined3d_texture_acquire_identity_srv(). 2023-12-01 18:45:46 +01:00
Zebediah Figura
1698fd40cd wined3d: Introduce an API for creating an identity SRV on a texture. 2023-12-01 18:45:44 +01:00
Zebediah Figura
d8782a9b8e wined3d: Release the view's resource after destroying the view.
Allow us to avoid grabbing a temporary reference. This becomes a problem with
the next patch, where we would otherwise grab a reference while a texture is
being destroyed, and hence destroy it twice.
2023-12-01 18:45:20 +01:00
Zebediah Figura
ef2908462d wined3d: Explicitly bind 0 for a NULL SRV.
Currently we invalidate STATE_SAMPLER whenever an SRV is bound, and hence rely
on sampler() to do this for us, which is a bit obscure and won't work with the
next patch.
2023-12-01 18:45:18 +01:00
Vijay Kiran Kamuju
d95a04b4eb gdiplus: Add GdipDrawImageFX stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55945
2023-12-01 18:45:04 +01:00
Fabian Maurer
c55cce6fcb server: Initialize pe image struct padding to avoid Valgrind warning. 2023-12-01 17:21:39 +01:00
Zebediah Figura
49a157b1f2 winegstreamer: Allow videoconvert to parallelize in the parser.
We already do this for the transform.
2023-12-01 17:21:39 +01:00
Daniel Lehman
0b31c53ebc msxml3: Handle null prefix in get_item. 2023-12-01 17:21:39 +01:00
Aida Jonikienė
d81df26f7c dsdmo: Only print effect_inplace_Process() FIXME once.
GTA San Andreas really spams this message in certain situations.
2023-12-01 17:21:39 +01:00
Aida Jonikienė
602f68f23c comctl32: Only print TREEVIEW_HandleTimer() ERR once.
Older versions of Roblox trigger this quite a bit and it's annoying
to me so let's only print it once.
2023-12-01 17:21:39 +01:00
Alex Henrie
b9714336ea uxtheme/tests: Add some tests for OpenThemeFile.
The tests show that the first argument must not be null, that the handle
returned via the fourth argument is not an HTHEME, and that that handle
can be passed to CloseThemeFile without error.
2023-12-01 17:21:39 +01:00
Alexandre Julliard
effdb707b0 ntdll/tests: Remove some noisy traces. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
e60a97c1b4 ntdll: Fix stack layout for KiUserCallbackDispatcher on i386. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
3774b00f31 ntdll: Fix stack layout for KiUserApcDispatcher on i386. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
58a00854c3 ntdll: Fix stack layout for KiUserExceptionDispatcher on i386. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
b5cd47f541 ntdll: Skip NtRaiseException() call on ARM64 when debugger is not present. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
d6bd264460 ntdll: Fix stack layout and unwind information for KiUserCallbackDispatcher on ARM64. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
060a8b4af2 ntdll: Fix stack layout and unwind information for KiUserApcDispatcher on ARM64. 2023-12-01 17:21:39 +01:00
Alexandre Julliard
9bbdf6c7b5 ntdll: Fix stack layout and unwind information for KiUserExceptionDispatcher on ARM64. 2023-12-01 17:21:39 +01:00
Paul Gofman
1e4db62e0b setupapi: Add stubs for SetupDiGetCustomDeviceProperty{A|W}(). 2023-11-30 23:12:54 +01:00
Robert Wilhelm
b13e7ba7a4 vbscript: Sub argument has precedence over global const and local dim.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55502
2023-11-30 23:12:54 +01:00
Jacek Caban
6efee4baf1 gitlab: Add clang build. 2023-11-30 23:12:54 +01:00
Jacek Caban
d815623bf6 configure: Don't use empty expression in clang check.
Avoids m4_default default action.
2023-11-30 23:12:54 +01:00
Eric Pouech
0c61713bc3 kernelbase: Reset std handles gotten from GetStartupInfo().
The std handles gotten from GetStartupInfo are only set when
process was created with STARTF_USESTDHANDLES flag.
And yes, Ansi and Unicode versions reset the std
handles to a different value.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
bf97f9490a ntdll: Restrict cases for std handle inheritance in CreateProcess().
Only allow std handle inheritance when:
- either bInherit flag of CreateProcess is TRUE,
- or child process is in CUI subsystem and STARTF_USESTDHANDLES is no
  used.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
000f7faaa2 kernel32/tests: Add more tests about CreateProcess.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
84079a62db kernel32/tests: Enable CreateProcess() tests on 64bit compilation.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech
a55598b142 kernel32/tests: Introduce a new infrastructure for testing CreateProcess().
Move a couple of existing tests to this infrastructure.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Nikolay Sivov
00057128a3 vbscript: Implement TypeName(Nothing).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-11-30 23:12:54 +01:00
Alex Henrie
abbf0524a4 d3drm: Suppress a use-after-free warning in d3drm_image_palettise (GCC). 2023-11-30 23:12:54 +01:00
Louis Lenders
9a80befba3 shcore: Add stub for CreateRandomAccessStreamOverStream.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55867
2023-11-30 23:12:54 +01:00
Rémi Bernon
de01c2cfb6 winewayland.drv: Implement CAPLOK and SGCAPS in KBDTABLES. 2023-11-30 23:12:54 +01:00
Rémi Bernon
968fc33356 win32u: Support SGCAPS attributes in KBDTABLES. 2023-11-30 23:12:54 +01:00
Rémi Bernon
b2d16b9204 winewayland.drv: Add scan2vk tables for azerty, qwertz and dvorak. 2023-11-30 23:12:54 +01:00
Rémi Bernon
df4cae2e30 winewayland.drv: Translate Xkb keyboard layouts to KBDTABLES. 2023-11-30 23:12:54 +01:00
Rémi Bernon
ed9f1d0715 win32u: Allow KBDTABLES conversion from CTRL + ALT to WCHAR. 2023-11-30 23:12:54 +01:00
Rémi Bernon
027f73fcd5 win32u: Force US layout in ToUnicode when CTRL is pressed.
The host layout behave very differently in that case and we have tests
that check the exact results.
2023-11-30 23:12:54 +01:00
Rémi Bernon
ca02df5c3f win32u: Avoid accessing NULL key name string pointer. 2023-11-30 23:12:54 +01:00
Rémi Bernon
7c2ea1632f win32u: Introduce KbdLayerDescriptor user driver entry. 2023-11-30 23:12:54 +01:00
Rémi Bernon
d64ea8e4a6 winewayland.drv: Enumerate Xkb layouts and create matching HKL. 2023-11-30 23:12:54 +01:00
Rémi Bernon
e8c96e2e55 winewayland.drv: Handle and parse Xkb keymap events. 2023-11-30 23:12:54 +01:00