Commit graph

161902 commits

Author SHA1 Message Date
Rémi Bernon e091a7b817 oledb32/tests: Avoid use-after-free and unused assignment. 2023-01-25 18:31:03 +01:00
Rémi Bernon e7fbdd1eb2 oledb32: Fix error info cleanup dispparams rgvarg index. 2023-01-25 18:31:03 +01:00
Hans Leidekker 369e0cfae6 advapi32: Bump random buffer size.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54364
2023-01-25 18:31:03 +01:00
Paul Gofman 66b1a4f333 cryptnet: Also hash issuer cert for cache id.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54353
2023-01-25 18:28:06 +01:00
Paul Gofman f114ab57d2 cryptnet: Use cert data hash as cache id instead of serial number. 2023-01-25 18:28:06 +01:00
Paul Gofman 6e782449ab cryptnet: Cache revocation status in verify_cert_revocation(). 2023-01-25 18:28:06 +01:00
Alex Henrie 88d6f8ac6c include: Add localtime_s.
Needed to compile Tera Term.
2023-01-25 13:10:05 +01:00
Alex Henrie 9844a69411 include: Add ctime_s.
Needed to compile Tera Term.
2023-01-25 13:10:03 +01:00
Alex Henrie 261d7418a8 msvcrt: Change return type of _ctime32_s and _ctime64_s to errno_t. 2023-01-25 13:10:03 +01:00
Alexandre Julliard ae8797c8e3 tools: Add a common helper to setup signal handlers. 2023-01-25 11:47:51 +01:00
Alexandre Julliard 9f0ae8c992 tools: Move signal masking to the common make_temp_file() helper. 2023-01-25 11:47:51 +01:00
Alexandre Julliard ca398e2762 tools: Add a common helper to cleanup temp files. 2023-01-25 11:47:51 +01:00
Alexandre Julliard ecb651c01f tools: Add a common helper to get the argv0 directory. 2023-01-25 11:47:51 +01:00
Zebediah Figura a0a3c25e84 win32u: Make draw_scroll_bar() static. 2023-01-25 10:17:13 +01:00
Zebediah Figura e729c3bb70 win32u: Make draw_frame_caption() static. 2023-01-25 10:17:13 +01:00
Zebediah Figura ffe262b29b win32u: Make create_brush() hidden. 2023-01-25 10:17:13 +01:00
Zebediah Figura 035ac4df7a win32u: Make the global "caret" structure static. 2023-01-25 10:17:13 +01:00
Zebediah Figura e634f23659 win32u: Make call_messageAtoW() static. 2023-01-25 10:17:13 +01:00
Rémi Bernon 36b2f6be52 hidp: Allow match all usages on specific functions only. 2023-01-25 10:16:52 +01:00
Rémi Bernon 4466e2c24c windows.gaming.input: Fix magnitude sign for constant and ramp effects.
The magnitude already carries the sign of X direction. Having a signed
direction will inverse the effective direction. The Y and Z direction
sign and magnitude seem to be ignored.
2023-01-25 10:16:51 +01:00
Rémi Bernon 9d06d700e8 windows.gaming.input: Introduce new effect_reorient_direction helper. 2023-01-25 10:16:50 +01:00
Rémi Bernon d79075eb07 windows.gaming.input: Fix infinite effect duration scaling. 2023-01-25 10:16:48 +01:00
Rémi Bernon 42082d4d39 dinput: Avoid sending envelope report if it has been removed. 2023-01-25 10:16:48 +01:00
Alistair Leslie-Hughes d05ce2e72d include: Add _XHR enum values. 2023-01-25 10:16:31 +01:00
Paul Gofman e41135a4a5 ntdll: Use MemAvailable field for free RAM estimation if available. 2023-01-25 10:13:07 +01:00
Francois Gouget 605ecafa67 user32: Fix a SetClipboardData() buffer overflow.
Wine would append a correctly aligned NUL Unicode character to
terminate the string but overflow the buffer by one byte for odd-sized
strings.
Windows instead overwrites the last two buffer bytes with a NUL Unicode
character which ends up being misaligned for odd-sized strings.
The clipboard data has a size field anyway so match the Windows
behavior.
Tweak the tests to show that SetClipboardData() can overwrite half of
the Unicode string's last character.
2023-01-25 10:10:24 +01:00
Francois Gouget ee4f8cbb20 user32: Fix a SetClipboardData() underflow and improve the tests.
A 0 or 1 byte Unicode string cannot be NUL terminated. That does stop
Windows 10 and older from doing so which is why the 1 byte test must be
skipped to avoid a crash in the 64-bit case.
But in such cases SetClipboardData() fails on Windows 11 and so should
Wine (instead of underflowing the buffer like Windows).
Reorganize the test data by increasing size.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54192
2023-01-25 10:07:21 +01:00
Francois Gouget 47d4927424 user32/tests: Use wine_dbgstr_an() to trace malformed Unicode strings.
Using wine_dbgstr_wn() causes out-of-bounds memory accesses when given
Unicode strings with odd sizes, most obviously 1 byte strings.
Also trace the expected Ansi string for round-trip tests.
2023-01-25 10:07:19 +01:00
Francois Gouget 25d6c1a3b4 user32: GetClipboardData() should set last error when the format is not found.
This has the benefit of indicating why GetClipboardData() failed and of
matching the Windows 11 behavior.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54190
2023-01-25 10:07:17 +01:00
Eric Pouech e8c7920919 conhost.exe: Handle ctrl-\ in Wine.
Let conhost handle ctrl-\ instead of Unix tty, and pretend it's a
ctrl-pause/break key stroke.  This allows CUI application in processed
input mode not to close upon ctrl-\.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54141
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-25 10:04:02 +01:00
Eric Pouech fda954dfd4 conhost.exe: Handle ctrl-pause/break key strokes.
Note: this patch should be extended by adding insertion
of the CTRL_BREAK_EVENT into processes' crtl handler
(as it's done for CTRL_C_EVENT).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-25 10:04:00 +01:00
Fabian Maurer ae84e423c5 d3dx10core: Don't redefine ID3D10Device1 (gcc 4.3).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-01-25 10:01:38 +01:00
Fabian Maurer 0de8f53b3b d2d1_1: Don't redefine D2D1_PROPERTY_BINDING (gcc 4.3).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-01-25 10:01:36 +01:00
Alexandre Julliard c844ebdb0a shell32: Allocate a full SHITEMID to avoid a compiler warning. 2023-01-24 22:24:42 +01:00
Alexandre Julliard cf3d58e4dc krnl386: Remove a trace that causes compiler warnings. 2023-01-24 22:24:42 +01:00
Alexandre Julliard 6e43f873c3 krnl386: Make MapLS argument non-const to avoid some compiler warnings. 2023-01-24 22:24:39 +01:00
Alex Henrie 1afa20ae67 inetcomm: Fix memory leak on realloc failure in copy_headers_to_buf (cppcheck). 2023-01-24 22:13:48 +01:00
Alex Henrie 02d4647c9b hhctrl: Handle memory allocation failure in SearchCHM_File (cppcheck). 2023-01-24 22:13:18 +01:00
Alex Henrie 88a5c64b93 hhctrl: Handle memory allocation failure in ReadChmSystem (cppcheck). 2023-01-24 22:12:44 +01:00
Alex Henrie 7a441eafb4 dbghelp: Handle memory allocation failure in image_locate_build_id_target (cppcheck). 2023-01-24 22:12:36 +01:00
Alex Henrie 3e5a956563 twain_32: Handle realloc failure in twain_add_onedriver (cppcheck). 2023-01-24 22:11:37 +01:00
Fabian Maurer 89f1d626dc wldap32: Set error code in error cases (Coverity).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-01-24 22:11:06 +01:00
Fabian Maurer 0408d3a800 wldap32: Free resource in error case and return error code (Coverity).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-01-24 22:11:04 +01:00
Alex Henrie 4a8b12a1f6 mshtml: Handle memory allocation failure in set_statustext. 2023-01-24 22:10:52 +01:00
Alex Henrie d394df4a30 msi: Fix memory leak on realloc failure in search_directory (cppcheck). 2023-01-24 22:10:45 +01:00
Alex Henrie 6c1dd0f2c5 msi: Fix memory leak on realloc failure in msi_get_window_text (cppcheck). 2023-01-24 22:10:36 +01:00
Alex Henrie 3e231d0f36 msi: Fix memory leak on realloc failure in create_diff_row_query (cppcheck). 2023-01-24 22:10:29 +01:00
Alex Henrie a8e2aa6c4b winspool: Improve the grammar of a comment in get_servername_from_name. 2023-01-24 22:10:16 +01:00
Paul Gofman be57ebe015 ddraw: Do not report D3DDEVCAPS_HWRASTERIZATION for RGB emulation device. 2023-01-24 20:42:10 +01:00
Joshua Ashton 90416a48af winevulkan: Enable VK_EXT_hdr_metadata.
This works fine with the new struct conversions, and is needed
for HDR with native Vulkan games such as Doom Eternal and games using
HDR with DXVK and VKD3D-Proton.
2023-01-24 20:14:52 +01:00