Jinoh Kang
5242546465
ntdll: Fix integer overflow in RtlUniform.
...
The integer overflow bug in RtlUniform has been fixed since Windows
Vista. Synchronize Wine's version accordingly.
2023-02-14 20:57:09 +01:00
Jinoh Kang
b4ca6643b7
ntdll/tests: Update test_RtlUniform to match Windows Vista or later.
...
Today, test_RtlUniform() skips almost all of its tests on Windows Vista
or later. The skipped tests only succeed in Windows XP, and fail on
Windows Vista or later.
This is because RtlUniform()'s behavior has changed, presumably due to a
bug fix shipped in Windows Vista. It appears that RtlUniform, a linear
congruential generator, could overflow before computing the modulo in
WindoWs XP. This is no longer the case in Windows Vista or later.
Meanwhile, we no longer support Windows XP behavior and thus do not test
for it regularly; therefore, the tests are obsolete as of 2023.
Remove obsolete tests that no longer work with any of the Windows
versions actively tested by WineHQ (as of 2023), and replace them with
updated tests that works in the Windows versions from Vista up to 10.
2023-02-14 20:57:09 +01:00
Zebediah Figura
89e68fa9c9
ddraw/tests: Test that presenting does not set the pixel format on a window without one.
2023-02-14 20:57:09 +01:00
Zebediah Figura
5287d375a6
d3d8/tests: Test that presenting does not set the pixel format on a window without one.
2023-02-14 20:57:09 +01:00
Zebediah Figura
5535d834ee
d3d9/tests: Test that presenting does not set the pixel format on a window without one.
2023-02-14 20:57:09 +01:00
Zebediah Figura
02b482f47b
ddraw/tests: Remove unnecessary skips and conditionals from test_pixel_format().
...
We do not expect normal CreateWindow() and GetDC() calls to ever fail.
2023-02-14 20:57:09 +01:00
Rémi Bernon
b3aea08c31
dinput: Use a WH_CBT hook instead of WH_CALLWNDPROC.
...
WH_CALLWNDPROC hooks are called on every message, but we only need it
for the activation messages. WH_CBT hooks are called for a few events
only, which is much lighter, as we need to use a global hook to track
windows which belong to any other thread.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54431
2023-02-14 20:57:09 +01:00
Rémi Bernon
20a835a20b
dinput: Name input thread message and wparam values.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54431
2023-02-14 20:57:09 +01:00
Rémi Bernon
7f9fb63aec
dinput: Split dinput_unacquire_window_devices helper.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54431
2023-02-14 20:57:09 +01:00
Francois Gouget
cde58336b5
dpnet/tests: Fix the unexpected async handle traces.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
46d0da53b6
ntdll: Replace the wine_server_handle_to_fd() syscall by a Unix call.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
6d27bcbe2c
ntdll: Replace the wine_server_fd_to_handle() syscall by a Unix call.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
8a3ba513ff
ntdll: Replace the wine_server_call() syscall by a Unix call.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
a14b4c7d0d
ntdll: Replace the __wine_unix_spawnvp() syscall by a Unix call.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
5c62fe0bfe
ntdll: Replace the __wine_dbg_write() syscall by a Unix call.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
7406583e5b
ntdll: Store the unixlib handle at ntdll load time.
2023-02-14 20:57:09 +01:00
Alexandre Julliard
157be05143
ntdll: Use the standard unixlib macro for Unix calls.
2023-02-14 20:57:09 +01:00
Zebediah Figura
0ac2166cec
user32: Pass BSMINFO in BroadcastSystemMessageExA().
2023-02-14 20:57:09 +01:00
Francois Gouget
348fafcdbb
winevulkan: Add a trailing linefeed to some FIXME() thunk messages.
2023-02-14 20:57:08 +01:00
Francois Gouget
9338531ee4
winex11.drv: Fix a typo in a comment.
2023-02-14 09:58:03 +01:00
Francois Gouget
96c8d38360
winevulkan: Fix a typo in a comment.
2023-02-14 09:58:03 +01:00
Francois Gouget
a72415ce5d
winegstreamer: Fix a typo in a comment.
2023-02-14 09:58:03 +01:00
Francois Gouget
511f98280d
uiautomationcore: Fix a typo in a FIXME() message.
2023-02-14 09:58:03 +01:00
Francois Gouget
ed03f20d60
spoolss/tests: Fix a typo in a comment.
2023-02-14 09:58:03 +01:00
Francois Gouget
2f3d4d8fa1
kernel32/tests: Fix a typo in a comment.
2023-02-14 09:58:03 +01:00
Francois Gouget
d9ccc8664c
dbghelp: Fix a typo in a comment.
2023-02-14 09:58:03 +01:00
Francois Gouget
98d7826d0e
crypt32/tests: Fix a typo in a comment.
2023-02-14 09:58:02 +01:00
Francois Gouget
edf88aa9df
d3dcompiler/tests: Allow more imprecision in test_trig() for NVIDIA.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54150
2023-02-14 09:58:02 +01:00
Francois Gouget
cac02872c6
winetest: Avoid an infinite loop in vstrfmtmake() when the format is NULL.
...
When the format is NULL vsnprintf() always returns -1 so we keep
doubling the allocated memory until running out of memory.
2023-02-14 09:57:07 +01:00
Francois Gouget
b07129bad4
winetest: Don't use plain strings as format specifiers.
...
When they contain a percent character they would, at best, not be
printed correctly, and at worst cause a crash.
2023-02-14 09:57:07 +01:00
Aurimas Fišeras
be6cc4f135
po: Update Lithuanian translation.
2023-02-14 09:51:34 +01:00
Eric Pouech
25743d46f4
riched20/tests: Add retry loop around OpenClipboard() to avoid access denial.
...
Reusing existing helper from user32 & comctl32.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47888
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 22:18:03 +01:00
Eric Pouech
4fd5252f63
riched20/tests: Ensure clipboard has been pasted before testing the result.
...
The patch does reduce error failures locally.
For the record:
- WM_PASTE in undo operations haven't been transformed (as it requires
UNDO stack manipulation in a coherent way across platforms)
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47888
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 22:17:58 +01:00
Eric Pouech
1b7a918bd7
riched20: Support SFF_SELECTION when streaming in plain text.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 22:17:57 +01:00
Eric Pouech
82fa1048b5
riched20/tests: Add tests when pasting in plain text mode.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 22:17:57 +01:00
Shaun Ren
d83e03f638
wine.inf: Enable ir50_32 video codec.
2023-02-13 21:39:40 +01:00
Shaun Ren
4eac23121d
ir50_32: Implement decompression.
2023-02-13 21:39:31 +01:00
Shaun Ren
6d7b3addc4
winegstreamer: Implement basic functionality for video_decoder.
2023-02-13 21:39:31 +01:00
Shaun Ren
32bb602393
winegstreamer: Add WG_MAJOR_TYPE_VIDEO_INDEO video type.
2023-02-13 21:39:31 +01:00
Eric Pouech
115fbf632a
kernelbase: Let GetModuleInformation succeed on 64bit modules in wow64.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:09:32 +01:00
Eric Pouech
c66e876037
kernelbase: Let GetModuleFileNameEx succeed on 64bit modules in wow64.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:09:31 +01:00
Eric Pouech
07efff4e9f
kernelbase: Let GetModuleBaseName succeed on 64bit modules in wow64.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:09:31 +01:00
Eric Pouech
c56971ffbd
kernelbase: Implement EnumProcessModulesEx.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:09:31 +01:00
Eric Pouech
84a9a1c8fb
psapi: Add tests for EnumProcessModulesEx().
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:08:50 +01:00
Eric Pouech
f0b2238505
psapi: Let modules test pass on non wow64 compatible platforms.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:08:50 +01:00
Eric Pouech
20e7eb5eba
include: Add manifest constants for EnumProcessModulesEx.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-13 17:08:46 +01:00
Brendan Shanks
c4fba63894
ntdll: Respect zero_bits/limit when mapping a PE file.
2023-02-13 17:06:32 +01:00
Brendan Shanks
82c96f9484
ntdll/tests: Test NtMapViewOfSection with a 64-bit DLL and zero_bits > 31.
2023-02-13 17:06:32 +01:00
Hans Leidekker
8104688879
wpcap/tests: Initial tests.
2023-02-13 17:03:02 +01:00
Hans Leidekker
b97c9be3b8
wpcap: Try to enable 32-bit mmap() support in libpcap.
...
This feature will be available in version 1.11.
2023-02-13 17:03:02 +01:00