Commit graph

161814 commits

Author SHA1 Message Date
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
Gabriel Ivăncescu 929fdbbf55 notepad: Fix uninitialized upper 64-bits of pos in DoFind.
And get rid of the hacky casts.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-18 22:55:19 +01:00
Francois Gouget 8ddf8daa52 d3d12/tests: Allow a broken Windows 10 1709 hresult.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54298
2023-01-18 22:55:19 +01:00
Eric Pouech 8aeca16ca5 kernel32/tests: Filter spurious thread creation debug events.
On windows, we get some test failures as un-expected thread
create debug events are sent.
Try to filter them out in a couple of places.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-18 22:55:19 +01:00
Eric Pouech 982472d895 kernel32/tests: Merge two debug event loops in test_debugger().
Current test in debugger expects that all breakpoint debug
events appear before all the exit thread events.
On Windows, it happens that sometimes the breakpoint and exit
thread events are intertwined (making the test fail).

So, this patch:
- merges the exception events loop and the exit thread events loop
  into a single loop.
- detects the unordered sequence (mark it broken as windows only)
- extends the test so that we check that all exit thread events
  are received.
- introduce next_event_filter helper to not return some unwanted
  events.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47874
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-18 22:55:19 +01:00
Robert Wilhelm 6895ad6f9c vbscript/tests: Fix chr() tests with double-byte character sets.
There are no errors when running chr(-1) e.g. in utf-8 locale.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54003
2023-01-18 22:55:17 +01:00
Eric Pouech ce083b37f9 kernel32/tests: Extend share right for debugger's black box tests.
Trying to improve upon previous attempt: 2486f5a002

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53456
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-17 20:20:04 +01:00
Jactry Zeng 08832c5a77 po: Update Simplified Chinese translation. 2023-01-16 22:08:43 +01:00
Lauri Kenttä 87b4f800f7 po: Update Finnish translation. 2023-01-16 22:08:43 +01:00
Alexandre Julliard 6f123e8424 tools: Always fall back to argv[0] to find the tools directory.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54319
2023-01-16 22:08:43 +01:00
Tim Clem 5ca22f551d win32u: Correct GetRawInputBuffer alignment under WoW64.
Patch originally by Rémi Bernon.
2023-01-16 16:14:20 +01:00
Tim Clem fb0f8fe547 user32/tests: Test GetRawInputBuffer header fields more thoroughly.
Exposes an alignment issue under WoW64.
2023-01-16 16:14:17 +01:00
Alexandre Julliard 3e266800c4 Release 8.0-rc4. 2023-01-13 22:22:36 +01:00
Rémi Bernon 0bb029eb59 comctl32: Avoid mismatching heap in ProgressWindowProc.
When free-ing an Alloc-ed pointer.
2023-01-13 19:37:01 +01:00