Commit graph

166377 commits

Author SHA1 Message Date
Alex Henrie 294be17370 shcore: Use CRT allocation functions. 2023-09-04 11:42:25 +02:00
Alex Henrie 161f1b7b6f msctf: Use CRT allocation functions. 2023-09-04 11:42:21 +02:00
Jinoh Kang da74da2939 loader: Don't return from __stack_chk_fail() stub in preloader.
GCC expects __stack_chk_fail() to be noreturn[1].  Returning from
__stack_chk_fail() can thus lead to subtle failures.

When crashing, use a volatile NULL pointer dereference.  Ideally we
would like to "abort()" here, but doing so would require two more
syscall definitions just for a cold function.  After all, the function
isn't even used at all if -fno-stack-protector is specified.

Also, don't say "stack smashing" (unlike glibc).  The preloader
currently initializes the stack canary value to a fixed value (0), which
serves little value in protecting against actual buffer overrun attacks.

[1]: https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gccint/Stack-Smashing-Protection.html
2023-09-04 11:40:38 +02:00
Jinoh Kang 81f7329f4c loader: Fix calculation of thread_data address in Linux x86-64 preloader.
Fixes: ac1761d1da
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55508
2023-09-04 11:39:14 +02:00
Dmitry Timoshkov 73c9bb0710 kerberos: Add ISC_REQ_DELEGATE to the list of supported flags.
Both ISC_REQ_DELEGATE and ISC_RET_DELEGATE are properly translated
by the Unix side.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-09-04 11:38:57 +02:00
Alex Henrie 16e4b086f2 wldap32: Implement setting LDAP_OPT_CLIENT_CERTIFICATE.
Since most LDAP servers do not require mTLS, for now the callback
function is saved but not called.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55507
2023-09-04 11:38:51 +02:00
Alex Henrie ca249a915d wldap32: Rename cert_callback to server_cert_callback. 2023-09-04 11:38:51 +02:00
Dmitry Timoshkov 2e5a8595ed wldap32: Add support for ldap_set_option(LDAP_OPT_HOST_NAME).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-09-04 11:38:46 +02:00
Rémi Bernon 6dedfec9c3 dmsynth: Use CRT allocation functions. 2023-09-04 11:38:41 +02:00
Rémi Bernon 5e29d14789 dmsynth: Get rid of the IDirectMusicSynth8Impl typedef. 2023-09-04 11:38:41 +02:00
Rémi Bernon 011dd289e6 dmsynth: Rename IDirectMusicSynth8Impl method prefix to synth. 2023-09-04 11:38:41 +02:00
Rémi Bernon 68b356142c dmsynth: Move IDirectMusicSynthImpl struct to where it is used. 2023-09-04 11:38:41 +02:00
Rémi Bernon 1f990e59c0 dmsynth: Get rid of the IDirectMusicSynthSinkImpl typedef. 2023-09-04 11:38:41 +02:00
Rémi Bernon 1f7629dc0a dmsynth: Rename IDirectMusicSynthSinkImpl method prefix to synth_sink. 2023-09-04 11:38:41 +02:00
Rémi Bernon da256c4426 dmsynth: Move IDirectMusicSynthSinkImpl struct to where it is used. 2023-09-04 11:38:41 +02:00
Rémi Bernon 3b5160c975 dmsynth: Always return S_FALSE from DllCanUnloadNow. 2023-09-04 11:38:41 +02:00
Rémi Bernon 23b8988464 dmsynth: Remove unnecessary comments. 2023-09-04 11:38:41 +02:00
Jacob Czekalla 1accde204f comctl32/status: Invalidate entire status bar on WM_SIZE. 2023-09-04 11:38:21 +02:00
Alexandre Julliard db43ece90a oleaut32/tests: Mark the win9x behavior as todo on Wine. 2023-09-01 23:36:10 +02:00
Alexandre Julliard 8103907d54 kernel32/tests: Also remove stack pointer checks on 64-bit. 2023-09-01 23:21:58 +02:00
Alexandre Julliard 0cea9c78fa Release 8.15. 2023-09-01 21:36:35 +02:00
Louis Lenders b71a0e33ac wldp: Add WldpGetLockdownPolicy stub. 2023-09-01 19:48:46 +02:00
Alistair Leslie-Hughes e9003720d6 msvcrt: Remove DECLSPEC_HIDDEN usage. 2023-09-01 19:48:03 +02:00
Alexandre Julliard f078d5b4f9 gdi32: Fix buffer size parameter in GetFontFileData for 64-bit. 2023-09-01 18:06:02 +02:00
Alexandre Julliard f69bb9d6c5 scrrun: Fix pointer hashing on 64-bit. 2023-09-01 18:06:02 +02:00
Alexandre Julliard 863c57e956 winmm/tests: Fix a pointer truncation issue on 64-bit. 2023-09-01 18:06:02 +02:00
Alexandre Julliard ab959b91cd oleaut32/tests: Fix a pointer truncation issue on 64-bit. 2023-09-01 18:06:02 +02:00
Alexandre Julliard ff1dfb42b9 ntdll/tests: Work around a Windows pointer truncation bug in CPU info. 2023-09-01 18:06:02 +02:00
Alexandre Julliard 5bd5fecbeb ntdll/tests: Allow more invalid length values on Windows. 2023-09-01 16:08:16 +02:00
Alexandre Julliard e33cd0d18a ntdll/tests: Fix alignment issues on 64-bit. 2023-09-01 16:07:10 +02:00
Alexandre Julliard d3dfed51b3 kernel32/tests: Remove tests for the exact value of the stack pointer.
Stack pointer is randomized on Windows.
2023-09-01 16:02:23 +02:00
Alexandre Julliard 620306ffd1 kernel32/tests: Make the generated dlls relocatable. 2023-09-01 15:03:18 +02:00
Alexandre Julliard 211293eab2 kernel32/tests: Fix alignment issues on 64-bit. 2023-09-01 15:03:18 +02:00
Alexandre Julliard d64200805b kernel32/tests: Remove some workarounds for old Windows versions. 2023-09-01 15:03:18 +02:00
Biswapriyo Nath 5d8e135c12 include: Add Windows.Media.Effects.AudioEffect runtimeclass.
This is required for chromium and fixes the following compiler error.

In file included from media/audio/win/audio_low_latency_input_win.cc:5:
./media/audio/win/audio_low_latency_input_win.h:64:10: fatal error:
windows.media.effects.h: No such file or directory
   64 | #include <windows.media.effects.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
2023-09-01 11:28:38 +02:00
Jeff Smith 95efcca315 shlwapi: Fix SHFormatDateTime implementation during DST. 2023-09-01 11:28:15 +02:00
Jeff Smith 9bc503b6bb shlwapi/tests: Fix SHFormatDateTime test during DST.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54683
2023-09-01 11:28:15 +02:00
Davide Beatrici cdfb85220f mmdevapi: Move name string duplication in MMDevice_Create() from caller. 2023-09-01 11:27:38 +02:00
Davide Beatrici b1b231f370 mmdevapi: Simplify load_driver_devices() by combining loops and removing unneeded allocation(s). 2023-09-01 11:27:37 +02:00
Brendan Shanks 516c6af58e winebus.sys: Ensure unixlib function tables and enum stay in sync. 2023-09-01 11:27:26 +02:00
Brendan Shanks 9139d8705d mountmgr.sys: Ensure unixlib function tables and enum stay in sync. 2023-09-01 11:27:19 +02:00
Rémi Bernon 42100f2de6 win32u: Init vsc2char in NtUserMapVirtualKeyEx only if necessary. 2023-08-31 19:53:17 +02:00
Rémi Bernon 9a3e6ca381 win32u: Init vsc2vk in NtUserMapVirtualKeyEx only if necessary. 2023-08-31 19:53:17 +02:00
Rémi Bernon 7c95eb676a win32u: Init vsc2vk in NtUserGetKeyNameText only if necessary. 2023-08-31 19:53:16 +02:00
Dmitry Timoshkov a52cf805d2 ntdll: Implement NtCreateToken().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-08-31 19:53:16 +02:00
Rémi Bernon 509483356d dinput: Get rid of duplicated winetest helpers. 2023-08-31 19:53:16 +02:00
Rémi Bernon e3b2cfed9e include: Avoid using strcmp directly in wine/test.h.
It's not available in kernel driver code.
2023-08-31 19:53:16 +02:00
Rémi Bernon add4d6ef8d include: Introduce winetest wrappers for vprintf and GetTickCount. 2023-08-31 19:53:16 +02:00
Rémi Bernon 9bab243d90 include: Pass a temporary buffer to winetest_elapsed.
Using wine_dbg_sprintf pulls various things that are not available
in the driver tests.
2023-08-31 19:53:16 +02:00
Rémi Bernon e199e02176 include: Rename winetest_printf to winetest_print_location. 2023-08-31 19:53:16 +02:00