Commit graph

161715 commits

Author SHA1 Message Date
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
Zebediah Figura e7c46ac6b5 d3d11/tests: Do not test deferred contexts in test_dynamic_map_synchronization().
DISCARD maps on deferred contexts do not seem to offer the same synchronization
guarantees as do DISCARD maps on the immediate context, at least not with
respect to subsequent NOOVERWRITE maps on the immediate context. This is not
particularly surprising, seeing as it is probably far more usual to only map a
resource on one kind of context or the other.

The test currently fails on Windows 11 on NVidia drivers, but it also fails on
Mesa, for what I think are the same reasons.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52563
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54023
2023-01-06 10:39:12 +01:00
Biswapriyo Nath d059dd1cd0 include: Add missing constants in d3d11.idl. 2022-12-22 20:51:24 +01:00
Alexandre Julliard 6a1e2c1b89 d3d9/tests: Fix some activation/focus test failures.
By backporting the corresponding window management tweaks from the
d3d8:device test.
2022-12-22 20:51:24 +01:00
Alexandre Julliard 1368a4c20b d3d9/tests: Mark a render target color test as todo.
Split the check_rt_color() function to allow conditional todos.
2022-12-22 20:51:24 +01:00
Alexandre Julliard 8bd9fcbdea d3d9/tests: Mark a texture sampling test as todo.
It fails on the Gitlab CI.
2022-12-22 20:51:24 +01:00
Zebediah Figura 1a02862622 ntdll/tests: Avoid testing the server pipe signaled state from the main thread.
Although the test has never been observed to fail on Windows, I think the
failure is genuinely a race in the test.

File handles (like events) are signaled in order to mark that an I/O operation
has completed. In this case the I/O operation includes manipulating data on both
ends of the pipe, and as part of that may signal the other end. Internally,
however, the file handle must logically happen *after* all of this processing
has taken place, not least because (given the Windows I/O architecture) it is
the job of the I/O manager, not the IRP handler.

Since the purpose of the test is probably just to check that the file handle
will be signaled after a synchronous I/O operation has completed, we may as well
check it from the client thread, after we know for sure that it has.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54078
2022-12-22 15:16:25 +01:00
Jinoh Kang eb1f9896cc win32u: Honor CS_HREDRAW and CS_VREDRAW when resizing window.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52903
2022-12-22 15:16:03 +01:00
Jinoh Kang b2a9445e15 user32/tests: Add tests for CS_HREDRAW and CS_VREDRAW. 2022-12-22 15:16:01 +01:00
Alexandre Julliard 2d7d84a65a Release 8.0-rc2. 2022-12-21 22:07:48 +01:00
Rémi Bernon 6dd2ed2c7d winex11: Check pixel format flags in X11DRV_wglChoosePixelFormatARB.
The check was dropped in e392e0ac28,
leaving the dwFlags variable unused.
2022-12-21 21:18:44 +01:00
Rémi Bernon 87090965ff opengl32/tests: Test wglChoosePixelFormatARB flags filters. 2022-12-21 21:18:44 +01:00
Rémi Bernon 409d0f4247 Revert "qasf: Register ASF Reader filter media type."
This reverts commit 4608e1e125.

The ASF Reader filter suffers from defects which are difficult to solve,
and will require a better implementation of wmvcore in order to work
correctly. In the meantime, revert the class registration so that the
File Source filter is preferred instead.

This will break games that tried to use the filter directly and which
may have started to work correctly, but they are less frequent than the
ones simply playing wmv videos with quartz.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53640
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53748
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54191
2022-12-21 21:18:38 +01:00
Sven Baars 8e7c99f7ab wined3d: Do not explicitly check 3D depth/stencil capabilities in wined3d_check_device_format().
This reapplies the change from 67d0038e49
that was reverted in 06b1932218, causing
a regression.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53785
2022-12-21 18:55:20 +01:00
Eric Pouech af215210f0 kernel32/tests: Skip some console tests on w1064v1909.
We get conhost.exe:tty failures on testbot:
- not for version prior to w1064v1909 (these tests require
  pseudo-consoles, which are not implemented in these Windows
  version).
- for w1064v1909
- not for W10 versions after w1064v1909.

So, we assume that pseudo-console support is immature in this
Windows version: skip all the remaining test at the first
discrepancy point.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53465
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-21 18:24:39 +01:00
Zebediah Figura f3e381d1c9 d3d9: Upload the relevant texture in d3d9_texture_gen_auto_mipmap().
Instead of uploading all currently bound textures. Besides being redundant, this
would generate mipmaps for an uninitialized texture, and subsequently trying to
render from nonzero mipmap levels would yield uninitialized data.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54170
2022-12-21 18:24:39 +01:00
Zebediah Figura c3ee85b606 d3d9/tests: Test GenerateMipSubLevels() on a managed texture. 2022-12-21 18:24:39 +01:00