Yuxuan Shui
d1e02148b6
ntdll: Tweak the binary representation of SRWLOCK.
...
There are applications that uses SRWLOCK in an invalid way and then checks its binary
representation. Tweak our representation a bit so they are happy.
2023-11-10 00:03:44 +01:00
Jacek Caban
f7cf428f9f
kernel32/tests: Remove unused variable.
2023-11-09 23:00:40 +01:00
Dmitry Timoshkov
909204005b
ntdll: Add ACTCTX field limit checks to RtlCreateActivationContext().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-08 17:24:16 +01:00
Dmitry Timoshkov
e8ce99792e
kernel32: Add ACTCTX field limit checks to CreateActCtxA().
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-08 17:24:16 +01:00
Dmitry Timoshkov
54479863ce
kernel32/tests: Add some tests for CreateActCtx() with different structure sizes.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-08 17:24:16 +01:00
Alexandre Julliard
7ccb5df0fc
makefiles: Always use the global SOURCES variable for .rc files.
2023-11-01 22:43:56 +01:00
Hans Leidekker
fd00d8e4cc
ntdll: Bump current build number to 19043 (Win10 2009).
...
Based on Proton commit 0fa76dd66a8.
2023-10-31 17:04:57 +01:00
Alexandre Julliard
fb4eca9a1e
ntdll: Export RtlCopyMemory on ARM platforms.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
e57e885688
kernelbase: Export the extended context functions on all platforms.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
f13a6dee5e
kernel32: Export the Ums functions on ARM64.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
cf21c75bbf
ntdll: Simplify platform checks for exception handling functions.
...
And sync the corresponding forwards.
2023-10-19 18:19:30 +02:00
Alexandre Julliard
ec3de12825
ntdll: Relocate dynamic base modules when mapping them.
2023-10-05 18:49:44 +02:00
Alexandre Julliard
4847c1d8e4
server: Set the dynamically relocated flag when relocations are present.
2023-10-05 18:49:44 +02:00
Alexandre Julliard
b862cc032c
kernel32/tests: Delete the correct manifest file.
2023-10-03 17:44:50 +02:00
Alexandre Julliard
64654d617c
kernel32/tests: Add some dynamic base tests.
2023-10-03 13:32:44 +02:00
Alex Henrie
0d7cf84709
include: Move RTL functions that belong in ntddk.h from winternl.h to ntddk.h.
2023-09-27 11:17:47 +02:00
Alexandre Julliard
0abd795ff0
kernel32/tests: Fix loader tests on Windows ARM64.
2023-09-25 22:47:03 +02:00
Alexandre Julliard
4d417076e4
server: Don't zero out the PE optional header regardless of specified size.
2023-09-25 11:07:03 +02:00
Alexandre Julliard
30229d47e9
kernel32/tests: Update dll characteristics to make the module loadable on ARM64.
2023-09-20 22:15:29 +02:00
Alexandre Julliard
24c290523c
kernel32/tests: Unaligned SRW locks crash on ARM platforms.
2023-09-20 22:15:29 +02:00
Alexandre Julliard
fc6b9399db
kernel32/tests: Don't make assumptions about argv[0] of the main process.
2023-09-20 22:15:29 +02:00
Alexandre Julliard
74559aaa7f
kernel32/tests: Comment out one more test that can crash on Windows.
2023-09-20 22:15:29 +02:00
Eric Pouech
6558611fa2
ntdll: Allow empty application nodes in actctx.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-09-19 21:34:15 +02:00
Francois Gouget
c63b323e22
kernel32/tests: Allow a 0 removed entry count in the completion test.
...
This matches the ntdll:file fix.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54554
2023-09-14 12:30:33 +02:00
Nikolay Sivov
a81535d8c9
ntdll/actctx: Accept empty assembly elements.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-09-13 20:23:44 +02:00
Nikolay Sivov
a14c6b737a
kernel32/tests: Add activation context test with empty assembly manifest.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-09-13 20:23:43 +02:00
Alistair Leslie-Hughes
016c29ad6e
kernel32: Remove DECLSPEC_HIDDEN usage.
2023-09-13 11:13:11 +02:00
Eric Pouech
e668cf356b
kernel32/console: Add tests for GenerateConsoleCtrlEvent().
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-09-06 11:59:15 +02:00
Rémi Bernon
81da9ff0f8
makedep: Use #pragma makedep testdll for TESTDLL resources.
2023-09-05 12:44:34 +02:00
Paul Gofman
9ff0569667
kernelbase: Support masks suggesting no extension in FindNextFile().
2023-09-04 20:41:54 +02:00
Paul Gofman
a90f695f78
kernelbase: Get unprocessed mask in FindFirstFileExW().
2023-09-04 20:41:54 +02:00
Paul Gofman
6f3c76c9a5
kernel32/tests: Add more tests for FindFirstFile with wildcards.
2023-09-04 20:41:54 +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
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
Etaash Mathamsetty
240556e2b8
kernelbase: Add GetPackagePathByFullName stub.
2023-08-23 18:56:29 +02:00
Eric Pouech
3b7baae6e9
kernelbase: Correctly handle new process group flag in CreateProcess.
...
(when CREATE_NEW_CONSOLE is used).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
Eric Pouech
38906e8f70
kernel32/tests: Extend to new process group tests for CreateProcess.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
Eric Pouech
82b0bb3c24
server: Separate console and new group flag (CreateProcess).
...
We were using bit 1 of RTL_USER_PROCESS_PARAMETERS for two different cases:
- rightfully, as a sign to block ctrl-c events from being processed by
handlers (and by default, terminating the process)
- But this was also used to request for the creation of a new process group.
This patch properly separates the two use cases, by using the
ProcessGroupId field in RTL_USER_PROCESS_PARAMETERS (checked that Win10
behaves as this patch in RtlCreateUserProcess wrt.
RTL_USER_PROCESS_PARAMETERS ProcessGroupId usage input/output).
Introduce process_group_id in startup_info_t and use it to pass it to
server. ProcessGroupId field in RTL_USER_PROCESS_PARAMETERS is now properly
set.
Note: this will change some external behavior.
- before this patch, a child process created with Ctrl-C disabled
(ConsoleFlags set), couldn't turn it on as the process was detached
from unix console.
- now, SIGINT handling is moved to kernelbase (and can be turned on/off at
application will),
- when creating a new windows group id, the child will be detached from
unix console, so will no longer receives the SIGINT from ctrl-c in unix
console (if parent was attached to this unix console).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
Eric Pouech
ad148dfe88
kernel32/tests: Add tests for group and console flags in CreateProcess.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
Eric Pouech
43f4a32127
kernel32/tests: Only access ProcessGroupId field when present.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
Eric Pouech
7899577c97
kernel32/tests: Fix spurious failures in console:test_wait() test.
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-23 17:38:51 +02:00
Eric Pouech
e09dde5c94
kernelbase: Implement WaitForDebugEventEx().
...
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-08-22 10:39:18 +02:00
Paul Gofman
c77642ec52
ntdll: Match Windows used block filling.
...
Test rewritten by Rémi Bernon.
2023-07-27 13:12:06 +09:00
Alexandre Julliard
708d13b035
kernel32/tests: Use nameless unions/structs.
2023-07-20 21:48:39 +02:00
Sven Baars
9559959f95
kernel32/tests: Update a todo that succeeds with the new wow64 architecture.
2023-07-12 10:55:10 +02:00
Alexandre Julliard
ef6055c164
kernel32/tests: Avoid sizeof() in traces.
2023-07-06 20:54:30 +02:00
Zhiyi Zhang
884cff8214
kernelbase: Check if locale is NULL before using it in Internal_EnumDateFormats().
...
Initialize the calendars variable after checking if locale is NULL before using it to avoid NULL
pointer references. Fix a Excel 2016 crash when formatting dates with the custom format 'ddd'.
It calls EnumDateFormatsExEx() with the 'yi-Hebr' locale, which is added in Win10.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55099
2023-06-30 20:24:42 +02:00