Commit graph

161731 commits

Author SHA1 Message Date
Jacek Caban
4c7e7ccac9 include: Add vadefs.h header.
Based on mingw-w64.
2023-01-10 09:20:51 +01:00
Paul Gofman
62fa96df16 dwmapi: Fill qpcVBlank in DwmGetCompositionTimingInfo(). 2023-01-10 08:40:46 +01:00
Stefan Dösinger
09cafcc3b6 wined3d: Clamp the bound buffer range to the buffer size.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53671
2023-01-10 08:38:23 +01:00
Gabriel Ivăncescu
95b96a4a84 winex11.drv: Obtain icon info for icons passed to fetch_icon_data().
SetWindowIcon can pass an icon as a parameter, but in that case
NtUserGetIconInfo is never called, so the icon info is never filled.

Fixes a regression introduced by 3eb944c0a7.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-09 18:29:21 +01:00
Eric Pouech
ee5cdea922 comctl32/tests: Fix failing WM_PASTE tests for edit control on Win10+.
There are cases in Windows10+ where the WM_PASTE message doesn't paste
the content of the clipboard.

This appeared in testing:
- almost always just after (for a couple of milliseconds) setting new
  content into the clipboard and closing it.
- in some unrelated rare occasions (like once for 400 runs).

It looks like another (installed) process had opened the clipboard and
forbids the paste command.
As WM_PASTE doesn't return success/error status, workaround it by
wrapping the WM_PASTE command into a helper, and retry when the
clipboard's content hasn't been pasted.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53276
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53277
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-09 16:44:08 +01:00
Eric Pouech
e9a32c6a8d comctl32/tests: Retry when opening the clipboard.
As the clipboard is a shared resource, we cannot expect that
no other app hasn't openeded it.
So wrap clipboard access with a retry feature in case of failure.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-09 16:44:08 +01:00
Eric Pouech
ce78e293fd user32/tests: Fix failing WM_PASTE tests for edit control on Win10+.
There are cases in Windows10+ where the WM_PASTE message doesn't paste
the content of the clipboard.

This appeared in testing:
- almost always just after (for a couple of milliseconds) setting new
  content into the clipboard and closing it.
- in some unrelated rare occasions (like once for 400 runs).

It looks like another (installed) process had opened the clipboard and
forbids the paste command.
As WM_PASTE doesn't return success/error status, workaround it by
wrapping the WM_PASTE command into a helper, and retry when the
clipboard's content hasn't been pasted.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53276
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-09 16:44:08 +01:00
Eric Pouech
e439611d10 user32/tests: Retry when opening the clipboard.
As the clipboard is a shared resource, we cannot expect that
no other app hasn't openeded it.
So wrap clipboard access with a retry feature in case of failure.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-09 16:44:08 +01:00
Gabriel Ivăncescu
29ebb5b3ec win32u: Initialize the tracking_info for NtUserDrawScrollBar params.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-09 16:44:08 +01:00
Hans Leidekker
fbf4544f7d iphlpapi: Handle errors from DnsQueryConfig(DnsConfigDnsServerList).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52557
2023-01-09 16:44:08 +01:00
Zhiyi Zhang
d81cf4ed55 win32u: Introduce a get_display_depth() helper to retrieve emulated display depth.
Using EnumDisplaySettings() directly to query display depth has a high overhead when using the
XRandR 1.0 display device handler on some NVIDIA setups.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51420
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53382
2023-01-09 16:44:08 +01:00
Alistair Leslie-Hughes
8e9763871b faudio: Purge and clear notifications on ShutDown.
Cherry-picked from upstream commit 16f86bffec36b6e82e5c93d5f04ebc4ee4f980ab.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54264
2023-01-09 16:44:08 +01:00
Alexandre Julliard
448e68ab5b kernelbase: Fix FindNLSStringEx for strings with no primary weights.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53583
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53837
2023-01-09 16:44:08 +01:00
Alexandre Julliard
1bc133a3d3 gitlab: Add a daily win10 test run. 2023-01-09 16:44:08 +01:00
Alexandre Julliard
1c83f47893 Update copyright info for 2023. 2023-01-08 12:12:25 +01:00
Alexandre Julliard
9e33e4f4a2 Release 8.0-rc3. 2023-01-07 11:36:52 +01:00
Piotr Caban
8028ef5be8 msvcirt: Fix ostream_print_char on 0 character.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54180
2023-01-06 13:39:45 +01:00
Piotr Caban
dbe6244f10 msvcirt: Don't fail in streambuf_xsputn on 0xff character. 2023-01-06 13:39:45 +01:00
Philip K. Gisslow
904bedb3e9 msi: Initialize all members of WINTRUST_DATA.
The pSignatureSettings field was not unitilized so it got a random value from
the stack causing a later crash when it was dereferenced in Wintrust
(SoftPubloadSignature).
2023-01-06 13:39:45 +01:00
Nikolay Sivov
136a576d8c comctl32/tests: Ignore some IME messages in monthcal tests. 2023-01-06 13:39:45 +01:00
Alistair Leslie-Hughes
51a27f3124 include: Add missing enum XHR_PROP_ values. 2023-01-06 13:39:45 +01:00
Alistair Leslie-Hughes
7ac173fb43 xactengine3_7/tests: Skip tests when XACTEngine Initialization fails.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54151
2023-01-06 13:39:45 +01:00
Vladislav Timonin
b3ab1f8fb3 comctl32/listview: Exclude header area in WM_NCPAINT.
An improvement of 5f0dcf7918,
which, depending on theme, had an issue with
drawing the top border clipped inside the header.
2023-01-06 13:39:45 +01:00
Zhiyi Zhang
066221a9f9 d2d1/tests: Fix memory leaks.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53995
2023-01-06 13:39:45 +01:00
Zebediah Figura
379ae701c0 d3d8: Filter out redundant buffer discards.
I was unable to write tests for this; it seems it doesn't consistently work on
Windows. However, Rayman 3 seems to rely on it; it maps the same buffer twice
immediately after creation, with DISCARD flags on both maps, and expects the
same address to be returned.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53752
2023-01-06 13:39:45 +01:00
Ziqing Hui
c96d34e86e mfplat/tests: Add more RGB24 image size tests. 2023-01-06 13:39:45 +01:00
Ziqing Hui
bc467de573 mfplat/tests: Test MFGetStrideForBitmapInfoHeader for NV11. 2023-01-06 13:39:45 +01:00
Zebediah Figura
fcdc76388f winegstreamer: Explicitly sleep in the streaming thread when flushing.
The code originally intended to achieve this by simply waiting on flushing_cs,
and having the application thread hold flushing_cs while seeking. Unfortunately,
this can result in starvation of the application thread, since the streaming
thread always reacquires flushing_cs immediately after releasing it. Avoid this
by using a separate condition variable.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53403
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2023-01-06 13:39:45 +01:00
Zebediah Figura
9c53123277 winegstreamer: Protect the "streaming" member of struct parser with a separate lock.
The code previously relied on inherent atomicity of atomic types, but atomicity
doesn't imply the right memory ordering. Be explicit about the threading model
we want.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2023-01-06 13:39:45 +01:00
Zebediah Figura
794763bb60 winegstreamer: Factor out a parser_create() helper. 2023-01-06 13:39:45 +01:00
Rémi Bernon
51c73f003f dinput/tests: Test W.G.I condition effect with negative direction. 2023-01-06 13:39:45 +01:00
Rémi Bernon
3a6e527778 dinput/tests: Test W.G.I periodic effect with negative direction. 2023-01-06 13:39:45 +01:00
Rémi Bernon
44799ea3f0 dinput/tests: Test W.G.I constant effect with negative direction. 2023-01-06 13:39:45 +01:00
Rémi Bernon
61c251ac10 dinput/tests: Test W.G.I ramp effect with negative directions. 2023-01-06 13:39:45 +01:00
Rémi Bernon
19fb59eb97 dinput/tests: Reduce tests verbosity. 2023-01-06 13:39:45 +01:00
André Zwing
4b09ed1486 setupapi/tests: Don't test function directly when reporting GetLastError(). 2023-01-06 13:39:45 +01:00
André Zwing
e39c09f5c1 kernel32/tests: Don't test function directly when reporting GetLastError(). 2023-01-06 13:39:44 +01:00
André Zwing
e2b0cbb797 advapi32/tests: Don't test function directly when reporting GetLastError(). 2023-01-06 13:39:44 +01:00
Floris Renaud
5dab8075cf po: Update Dutch translation.
Avoid using the pronouns "u", "uw", "je" and "jouw".

Signed-off-by: Floris Renaud <jkfloris@dds.nl>
2023-01-06 13:39:44 +01:00
Eric Pouech
0d8b477b1f comctl32/test: Adapt the edit tests for height to Win10+.
Starting with Win10, height of multiline edit controls no longer seems
to be hardwired to a multiple of the font height (when larger than
font height).

- Adapt the tests accordingly (detecting how to compute the expected
  height of a control).
- Extend the ranges of the tested heights.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52152
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-06 10:43:20 +01:00
Eric Pouech
e439373f59 comctl32/tests: Fix failing test on Windows in Arabic UTF-8.
Already fixed in user32/tests/edit.c by
614b7d7430

Apply same fix for equivalent test on comctl32/tests/edit.c

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52932
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-06 10:42:48 +01:00
Tim Clem
055b67ea97 dinput: Add granularity to object_properties.
Return WHEEL_DELTA for the granularity of the mouse z-axis.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53627
2023-01-06 10:42:13 +01:00
Tim Clem
1e6258d26b dinput: Create object_properties for each mouse axis.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53627
2023-01-06 10:42:13 +01:00
Tim Clem
b452ebb67c dinput/tests: Test granularity of the mouse z-axis.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53627
2023-01-06 10:42:13 +01:00
Jinoh Kang
36ca172e85 regedit: Clip siblings when drawing list and tree views. 2023-01-06 10:41:21 +01:00
Jinoh Kang
8242b65172 regedit: Use the default WM_PAINT implementation for REGEDIT window. 2023-01-06 10:41:21 +01:00
Zebediah Figura
734190a78c wined3d: Ignore DISCARD and NOOVERWRITE on buffers which are not GPU-accessible.
This fixes a regression introduced by ebbcc10b05.
Prior to that commit, buffers which were not CPU-accessible would not have the
WINED3D_BUFFER_USE_BO flag set, and accordingly
buffer_resource_sub_resource_map() would simply return the SYSMEM location,
ignoring the DISCARD and NOOVERWRITE flags.

However, the "accelerated" path in wined3d_cs_map_upload_bo() only checks for
the DISCARD flag, assuming that it is only set for dynamic GPU-accessible
buffers, and would subsequently try to allocate non-mappable memory and then map
it.

This commit avoids the accelerated path for such buffers, once again matching
our old behaviour. According to [1], this also matches Windows: DISCARD on
SYSTEMMEM buffers is ignored on both AMD and NVidia, and NOOVERWRITE is ignored
on NVidia (but not AMD).

[1] https://www.winehq.org/mailman3/hyperkitty/list/wine-devel@winehq.org/message/XACSAVAGYTJUZDFLX4JWO665VTB6M7LX/

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53863
2023-01-06 10:40:47 +01:00
Zebediah Figura
d9c369c747 wined3d: Load and invalidate every mipmap level when mapping the top mipmap level.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53743
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2023-01-06 10:40:20 +01:00
Zebediah Figura
798b23d971 d3d8/tests: Test uploading the whole mipmap chain in one map.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2023-01-06 10:40:20 +01:00
Zebediah Figura
2954d3e4a2 d3d9/tests: Test uploading the whole mipmap chain in one map.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2023-01-06 10:40:19 +01:00