Commit graph

161827 commits

Author SHA1 Message Date
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
Zebediah Figura e705c822a3 d3d10core/tests: Add a basic test for vertex formats. 2023-01-24 18:17:41 +01:00
Zebediah Figura dc19f5c517 d3d11/tests: Add a basic test for vertex formats. 2023-01-24 18:17:41 +01:00
Gerald Pfeifer 9bf9b20c53 localspl: Avoid uninitialized variable in fill_builtin_form_info.
As diagnosed by GCC 13:

    dlls/localspl/provider.c: In function ‘fill_builtin_form_info’:
    dlls/localspl/provider.c:3045:16: warning: ‘res_len’ may be used uninitialized [-Wmaybe-uninitialized]
     3045 |             if (res_len)
          |                ^
2023-01-24 18:16:53 +01:00
Rémi Bernon 03aa9e13e7 services: Use a separate allocation for NotifyParamsArray[0].params.
The pointer might be freed by RPC NdrPointerFree, which will try to use
a dedicated free call for the array elements, and fail.
2023-01-24 18:15:41 +01:00
Rémi Bernon bea9ef83cc sechost: Use heap_strdup_multi_AtoW for dependencies in CreateServiceA. 2023-01-24 18:15:21 +01:00
Jinoh Kang f9ab9292e7 ntdll: Remove redundant WARN_ON(heap) check. 2023-01-24 18:15:07 +01:00
Jinoh Kang af557f0cbc ntdll: Validate blocks in the heap pending free request list. 2023-01-24 18:15:07 +01:00
Jinoh Kang 8cc5e89267 ntdll: Validate subheap's owner heap when validating heap. 2023-01-24 18:15:07 +01:00
Jinoh Kang b887e31d15 ntdll: Check for delayed free block in heap_validate_ptr.
Today, the heap does not catch double free when both HEAP_VALIDATE and
HEAP_FREE_CHECKING_ENABLED are on, since validate_used_block() accepts
BLOCK_TYPE_DEAD as a valid (allocated) block type.

Fix this by adding an explicit check that rejects BLOCK_TYPE_DEAD in
heap_validate_ptr.
2023-01-24 18:15:05 +01:00
Jinoh Kang 8c43577f0f riched20: Obtain the composition start index after deleting selection.
Today, the Rich Edit control handles the WM_IME_STARTCOMPOSITION message
by the computing the composition start position (imeStartIndex) _before_
calling ME_DeleteSelection(), which shifts the character positions after
the range of deletion.  If the selection were not empty, imeStartIndex
immediately becomes stale, since it does not take into account the
number of deleted characters before it.

Fix this by computing imeStartIndex after the ME_DeleteSelection() call.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54318
2023-01-24 18:14:33 +01:00
Evan Tang 8b0868c176 mshtml: Implement IHTMLRect2 for HTMLRect. 2023-01-24 18:14:11 +01:00
Jacek Caban 8870d51d3e win32u: Silence spurious FIXME in NtUserScrollWindowEx.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54357
2023-01-24 18:13:43 +01:00
Zhiyi Zhang 1f1f99025d comctl32/listview: Repaint when changing view styles.
Changing listview view styles should repaint according to the tests in test_WM_STYLECHANGED().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54215
2023-01-24 18:13:32 +01:00
Zhiyi Zhang cc84be8d89 comctl32/tests: Add WM_STYLECHANGED tests for changing listview view styles.
Changing view styles should repaint listviews according to the newly added tests.
2023-01-24 18:13:30 +01:00
Jinoh Kang cfbe8aed48 ntoskrnl.exe/tests: Use loopback address in test_wsk_listen_socket.
Today, the driver_netio test server binds to the wildcard address
(0.0.0.0).  This may trigger a firewall alert on Windows 7, and the
alert UI window may interfere with user32:msg tests.

Fix this by binding to the loopback address (127.0.0.1) instead.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53891
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54202
2023-01-24 18:13:19 +01:00
Alexandre Julliard 6677c044ab Release 8.0. 2023-01-24 16:06:25 +01:00
Alexandre Julliard b73081edb8 gitlab: Don't force the date of the release. 2023-01-24 15:22:49 +01:00
Floris Renaud 11bd4b53a9 loader: Document the WINE_D3D_CONFIG environment variable. 2023-01-24 15:22:49 +01:00
Alexandre Julliard eb3355bcf8 Release 8.0-rc5. 2023-01-20 19:07:17 +01:00
Byeongsik Jeon dd917e7413 po: Update Korean translation. 2023-01-20 16:00:08 +01:00
Francois Gouget a9c03e6d5b win32u: Document the font_lock handling in font_EnumFonts().
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=49202
2023-01-20 15:59:45 +01:00
Fan WenJie 7f62f7be87 winebuild: Only set thumb_mode on ARM targets.
Signed-off-by: Fan WenJie <fanwj@mail.ustc.edu.cn>
2023-01-20 15:59:09 +01:00
Francois Gouget 31792f4370 nsi: Add some margin to the tables size in NsiAllocateAndGetTable().
The table size typically keeps increasing such that in some cases the
size we got is already too small by the time we try to get the table
content in the next iteration.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54328
2023-01-19 19:17:27 +01:00
Francois Gouget cc32eb6c0d nsi: Return an error if NsiAllocateAndGetTable() fails to allocate the tables.
err must be set if the last attempt to allocate the tables fails.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54328
2023-01-19 19:17:25 +01:00
Brendan Shanks 3bcda5aefa kernel32/tests: Test GetFileType() with additional types of handles. 2023-01-19 19:16:41 +01:00
Santino Mazza f659ae65e4 iphlpapi: Set Ipv4Enabled and Ipv6Enabled flags accordingly. 2023-01-19 16:04:06 +01:00
Santino Mazza a331f1e614 iphlpapi/tests: Test for Ipv4Enabled and Ipv6Enabled flags. 2023-01-19 16:03:58 +01:00