Commit graph

161854 commits

Author SHA1 Message Date
Paul Gofman
be57ebe015 ddraw: Do not report D3DDEVCAPS_HWRASTERIZATION for RGB emulation device. 2023-01-24 20:42:10 +01:00
Joshua Ashton
90416a48af winevulkan: Enable VK_EXT_hdr_metadata.
This works fine with the new struct conversions, and is needed
for HDR with native Vulkan games such as Doom Eternal and games using
HDR with DXVK and VKD3D-Proton.
2023-01-24 20:14:52 +01:00
Alex Henrie
aa70bdb5d6 winex11: Simplify confusing condition and error messages in wglShareLists.
Mathematically, ((a && b) || b) == b. Moreover, test_sharelists in
dlls/opengl32/tests/opengl.c checks that wglShareLists can share lists
from a source context that has been current.
2023-01-24 20:14:52 +01:00
Rémi Bernon
d418cb7551 schedsvc: Use CRT allocation functions in remaining calls. 2023-01-24 20:14:52 +01:00
Rémi Bernon
554cfb1984 schedsvc: Avoid mismatching heap in RPC allocations.
SchRpcEnumFolders names are allocated with malloc, and later freed
in __finally_ITaskSchedulerService_SchRpcEnumFolders using
MIDL_user_free.
2023-01-24 20:14:52 +01:00
Rémi Bernon
381e756a9b schedsvc: Avoid mismatching heap in SchRpcEnumTasks. 2023-01-24 20:14:52 +01:00
Rémi Bernon
d59e89dab1 schedsvc: Avoid mismatching heap in SchRpcEnumFolders. 2023-01-24 20:14:52 +01:00
Paul Gofman
a98319d0c5 ntdll: Do not use extended context in RtlCopyContext() if extended state is not copied.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54289
2023-01-24 20:14:52 +01:00
Paul Gofman
4679b556a2 ntdll: Factor out context_copy_ranges() function. 2023-01-24 20:14:52 +01:00
Paul Gofman
03e08d1834 ntdll/tests: Fix random test failure in test_restore_context(). 2023-01-24 20:14:52 +01:00
Paul Gofman
e59bfb7b82 ntdll/tests: Fix xstate tests failing on modern Windows and CPUs with more xstate features. 2023-01-24 20:14:52 +01:00
Paul Gofman
be92764a5a ntdll/tests: Fix the case of absent XSTATE context in test_copy_context(). 2023-01-24 20:14:52 +01:00
Eric Pouech
5fc54e3219 winedbg: Use debuggee's bitness for 'examine /a' command.
Also fixes stack dump in crash summary and 'info stack' command.
(We were using debugger's bitness instead).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 20:14:52 +01:00
Eric Pouech
ad21db2e1e dbghelp: Don't use dbghelp_current_cpu.
It's bound to debugger's CPU not debuggee's.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 20:14:52 +01:00
Eric Pouech
85fb74a672 dbghelp: In dwarf debug info, use the same name of anonymous UDT as pdb.
It's hard coded by msvc in PDB information, so adapt dwarf to advertize
the same.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 20:14:52 +01:00
Akihiro Sagawa
c385b6475e user32/edit: Fix WM_CHAR handler for double-byte characters.
After commit 2aa54a90bd, a double-byte
character is sent to the edit control by double WM_CHAR messages.
However, its WM_CHAR handler (ANSI version) can't process a double-
byte character properly because the handler converts WM_CHAR to WCHAR
one by one.
This fix queues the double-byte lead byte as it comes in and then uses
it afterwards for the WCHAR conversion.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54337
2023-01-24 20:09:10 +01:00
Akihiro Sagawa
cbe3a39b64 user32/tests: Add DBCS WM_CHAR tests for edit control. 2023-01-24 20:09:10 +01:00
Rémi Bernon
17ac4059a5 dwrite: Statically init the system_fallback locale list.
To avoid a crash on DLL unload if it wasn't initialized.
2023-01-24 20:06:18 +01:00
Alistair Leslie-Hughes
90d50bc611 mountmgr.sys: Don't attempt to read from invalid media.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49615
2023-01-24 18:27:08 +01:00
Nikolay Sivov
c38aa80ed4 windows.globalization: Implement ILanguage::get_LanguageTag(). 2023-01-24 18:26:57 +01:00
Bernhard Kölbl
86fb17c8fb windows.media.speech/tests: Test starting, stopping, pausing and resuming the recognition session.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-01-24 18:26:35 +01:00
Bernhard Kölbl
b36871b85a windows.media.speech/tests: Test the recognizer state.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-01-24 18:26:34 +01:00
Bernhard Kölbl
4e88f093b0 windows.media.speech: Return IAsyncAction from session_PauseAsync.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-01-24 18:26:33 +01:00
Bernhard Kölbl
d21b872a80 windows.media.speech: Return IAsyncAction from session_StopAsync.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-01-24 18:26:32 +01:00
Bernhard Kölbl
754452dd9d windows.media.speech: Do not force calling convention on internal callbacks.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-01-24 18:26:31 +01:00
Bernhard Kölbl
e203d3be0a windows.media.speech: Move constraints vector to the recognition session.
Signed-off-by: Bernhard Kölbl <besentv@gmail.com>
2023-01-24 18:26:29 +01:00
Alex Henrie
08643dc4d5 dwrite: Handle memory allocation failure in bidi_compute_bracket_pairs (cppcheck). 2023-01-24 18:26:15 +01:00
Eric Pouech
a89975f731 dbghelp: Expose the real path to the module in SymGetModuleInfo*().
Expose the real path of a loaded module (potentially read from
WINEDLLDIR or WINEBUILDDIR or overriden load order or ...).  This
improves gdb integration by passing the real path to the loaded
modules (instead of the paths in c:\windows\ system subdirectories).
Introduce new Wine only dbghelp's extended option to enable the
feature.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54250
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 18:25:58 +01:00
Ake Rehnman
70b8461bef dbghelp: Store path to module image when passed through file handle.
Co-authored-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 18:25:54 +01:00
Eric Pouech
3055653c1e winedbg: Pass loaded image's file handle to dbghelp.
In some cases (running from build tree, overriding load order...), the
path to the module from the load DLL debug event isn't the real path
to the loaded module. So pass the handle to loaded module's image from
winedbg to dbghelp (to avoid image lookup).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54250
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 18:24:13 +01:00
Eric Pouech
168c7a475d dbghelp: Don't search path when we have a file handle to loaded image.
When the handle to the loaded module is passed in SymLoadModule*(),
don't try to search for the module's image path and use only the file
handle.

Co-authored-by: Ake Rehnman <ake.rehnman@gmail.com>
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-24 18:24:09 +01:00
Nikolay Sivov
cab673f8b3 include: Add recent DirectWrite API changes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-01-24 18:22:05 +01:00
Fabian Maurer
4bc6aad375 user32/tests: Don't assign const variable to other const (gcc 4.7).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-01-24 18:21:44 +01:00
Alex Henrie
7ada8b96fb include: Add RTL_CONSTANT_STRING. 2023-01-24 18:21:34 +01:00
Zebediah Figura
fe8f63ce72 rpcrt4: Use CONTAINING_RECORD in release_delegating_vtbl(). 2023-01-24 18:19:47 +01:00
Zebediah Figura
10bbf79d53 rpcrt4: Use a flexible array member in struct delegating_vtbl. 2023-01-24 18:19:47 +01:00
Zebediah Figura
e85afda3b5 rpcrt4: Rename "ref_counted_vtbl" to "struct delegating_vtbl".
Get rid of the typedef, and give it a slightly more salient name (and one that
matches more of the surrounding code).
2023-01-24 18:19:44 +01:00
Zebediah Figura
4ad5de2841 rpcrt4: Use a CONTAINING_RECORD helper to retrieve CInterfaceStubHeader from CStdStubBuffer. 2023-01-24 18:19:43 +01:00
Zebediah Figura
180edc5a4f rpcrt4: Use a CONTAINING_RECORD helper to retrieve CStdStubBuffer from IRpcStubBuffer. 2023-01-24 18:19:43 +01:00
Shaun Ren
c97b8a8f1a mfplay/tests: Add tests for MF_SD_LANGUAGE. 2023-01-24 18:19:12 +01:00
Shaun Ren
2eecb04ca7 winegstreamer: Map MF_SD_LANGUAGE to ISO 639-1 for QuickTime media.
For QuickTime media, MF_SD_LANGUAGE contains the ISO 639-1-mapped
language code. Some games such as Borderlands 3 expect this behaviour.

In order to determine the type of the media, we store the demuxer caps
in the wg_parser structure.
2023-01-24 18:19:05 +01:00
Shaun Ren
4a9c72b866 winegstreamer: Parse all tag events in query_tags.
Some gstreamer plugins, such as asfdemux, generate multiple tag events.
2023-01-24 18:19:02 +01:00
Gabriel Ivăncescu
bdc67e95b5 mshtml/tests: Fix window leaks in dom tests.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-24 18:18:04 +01:00
Gabriel Ivăncescu
5f031f2c87 mshtml/tests: Fix EventObj leak in onclick test.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-24 18:18:04 +01:00
Gabriel Ivăncescu
f3ad67d7a5 mshtml: Don't initialize HTMLElement dispex for Option constructor.
It's not an element, so it doesn't even implement those interfaces.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-24 18:18:01 +01:00
Gabriel Ivăncescu
5c3b285431 mshtml: Release the image factory's dispex.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-24 18:18:01 +01:00
Gabriel Ivăncescu
355eb6b91b mshtml: Don't hold ref to the created window in the FrameBase.
Note that for the case when mozwindow_to_window returns an existing window,
no ref is added to it anyway, so this is just leaking.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-24 18:17:58 +01:00
Gabriel Ivăncescu
6a1b12bd8f mshtml: Don't release the frame returned by get_frame_by_name.
It does *not* add a ref to the returned frame.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-24 18:17:54 +01:00
Zebediah Figura
bb82bc78f4 wined3d: Use a string channel desc to initialize typed formats.
Avoid the need for manually set type attributes, and initialize the component
count for all such formats.

This fixes use of R11G11B10_FLOAT as a vertex attribute format with the GL
backend. Since it has no corresponding typeless format, prior to this commit the
component count was uninitialized and hence use of the format would result in a
GL error.

This fixes a GL error with Dark Souls Remastered. I did not immediately observe
any corresponding rendering errors, however.
2023-01-24 18:17:41 +01:00
Zebediah Figura
941e685a5b wined3d: Separate a parse_channel_desc() helper. 2023-01-24 18:17:41 +01:00