Commit graph

6542 commits

Author SHA1 Message Date
Brendan Shanks b8ec1068ba ntdll: Add ".globl" for asm labels referenced from C.
Fixes syscall faults on 32-bit macOS.
Spotted by Stefan Dösinger.
2022-07-11 22:39:46 +02:00
Piotr Caban 6f9cc9a083 ntdll: Fix x64 single step exception detection on macOS.
On macOS si_code is always set to TRAP_BRKPT.
2022-07-11 10:36:40 +02:00
Zebediah Figura bc270a5432 ntdll: Correctly handle shift greater than the type width in 64-bit shift functions.
Based on a patch by Zhao Yi.
2022-07-08 19:53:21 +02:00
Zebediah Figura 9ef7246243 ntdll: Avoid depending on compiler support for 64-bit shift functions. 2022-07-08 19:53:21 +02:00
Zebediah Figura 42636254f4 ntdll/tests: Add tests for runtime 64-bit shift functions. 2022-07-08 19:53:21 +02:00
Zebediah Figura 15320277f8 ntdll: Fix the calling convention for runtime 64-bit shift functions.
Based on a patch by Zhao Yi.
2022-07-08 19:53:18 +02:00
Alexandre Julliard 569c27945e server: Use standard named object functions for registry keys.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-07 19:10:02 +02:00
Alexandre Julliard 0cb350f19c ntdll: Make all registry lookups case-insensitive.
Following recent Windows versions.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-07 19:10:02 +02:00
Alexandre Julliard 5414f648ee server: Implement unlink_name() for registry keys.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-06 16:02:48 +02:00
Alexandre Julliard 4bf9d2403f ntdll: Fix the return value of NtQueryKey for a short buffer.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-06 16:02:48 +02:00
Alexandre Julliard 41751e6170 ntdll/tests: Remove todo from tests that succeed now.
Tests fixed by 95ddb7576d.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-06 16:02:48 +02:00
Alexandre Julliard 68a69b51bb server: Return the standard status code when the key exists in NtCreateKey.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:19:00 +02:00
Alexandre Julliard ec8edb66df server: Fix access check for NtQueryKey.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:08:43 +02:00
Alexandre Julliard 95ddb7576d ntdll: Fix returned error for NtCreateKey with empty name.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:06:39 +02:00
Alexandre Julliard a4373db64e ntdll/tests: Add a few more tests for registry path names.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:00:38 +02:00
Alexandre Julliard aca2cac6e2 ntdll/tests: Remove some workarounds for older Windows versions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 14:00:38 +02:00
Yoshiji Emoto b19b3701e8 ntdll: Add SJIS charset.
Signed-off-by: Yoshiji Emoto <alumina.from.ceramix@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-04 23:33:23 +02:00
Alexandre Julliard c6d9640007 ntdll: Use proper absolute paths for registry keys.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-04 16:43:46 +02:00
Alexandre Julliard 49f8704aac ntdll: Add atan2.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-01 19:16:16 +02:00
Alexandre Julliard 6f16956c0b ntdll: Add _ftol2 and _ftol2_sse.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-01 19:16:16 +02:00
Alexandre Julliard 607a38246b ntdll: Add _vscprintf and _vscwprintf.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-01 19:16:16 +02:00
Alexandre Julliard 5b36a00b4d ntdll: Add bsearch_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-01 19:16:16 +02:00
Alexandre Julliard d1cc31cebb ntdll: Add qsort_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-01 19:16:16 +02:00
Brendan Shanks ee0fd30e58 ntdll: Use +threadname channel for SetThreadDescription().
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
2022-06-30 12:32:48 +02:00
Brendan Shanks 8a61b7c2eb ntdll: Use +threadname channel for thread rename exceptions.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
2022-06-30 12:32:48 +02:00
Alexandre Julliard ca9f357647 ntdll: Add _makepath_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 0c986b2c77 ntdll: Add _wmakepath_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 5d2f0688cf ntdll: Add _splitpath_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 0db689edf4 ntdll: Add _wsplitpath_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 911810c51a ntdll: Add _i64toa_s.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 4e269f75ec ntdll: Add _ui64toa_s.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard c45abb8a7c ntdll: Add _i64tow_s.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 703212b67e ntdll: Add _ui64tow_s.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard 9dcfda0233 ntdll: Add _wcstoui64.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard ae1202cef0 ntdll: Add _wcstoi64.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-30 12:32:48 +02:00
Alexandre Julliard cbf5ad74fc ntdll: Add memcpy_s and memmove_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard 25f4760e85 ntdll: Add strupr_s and wcsupr_s.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard a15c55e658 ntdll: Add strlwr_s and wcslwr_s.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard b44ebda388 ntdll: Add strtok_s and wcstok_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard 7c70b9397f ntdll: Add strncat_s and wcsncat_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard 94e960c861 ntdll: Add strncpy_s and wcsncpy_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard 83cd792e35 ntdll: Add strcat_s and wcscat_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard 41f488a32d ntdll: Add strcpy_s and wcscpy_s.
Implementation copied from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard c948a6cf92 ntdll: Add a few more isw* functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Alexandre Julliard 194e09baec makefiles: Add separate variables for Unix flags and libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Zebediah Figura e39880d945 ntdll/tests: Test setting the return value via alertable NtContinue().
This is currently broken on WoW64.
2022-06-28 18:45:36 +02:00
Zebediah Figura 1168dfc3c1 ntdll/tests: Fix test_user_apc() on Windows < 7. 2022-06-28 18:45:36 +02:00
Zebediah Figura 6775a20f4e ntdll/tests: Fix test_user_apc() on i386. 2022-06-28 18:45:36 +02:00
Nikolay Sivov 1fb6f27144 ntdll: Implement NtRenameKey().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-28 15:54:15 +02:00
Nikolay Sivov 4bd160da5e ntdll/tests: Add some tests for NtRenameKey().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-28 15:39:55 +02:00