Commit graph

4301 commits

Author SHA1 Message Date
Alexandre Julliard bf84534793 tests: Use ARM64 as architecture in manifests on ARM64EC. 2024-06-12 09:55:08 +02:00
Alexandre Julliard 338df02010 kernel32: Implement the GetProcAddress wrapper on ARM64EC. 2024-06-07 11:04:10 +02:00
Paul Gofman e1d2fb8e05 kernelbase: Preprocess wildcarded mask and pass it with NtQueryDirectoryFile(). 2024-06-07 09:08:03 +02:00
Paul Gofman db032ac4a9 ntdll: Implement matching DOS_STAR in NtQueryDirectoryFile(). 2024-06-07 09:08:03 +02:00
Paul Gofman 0a2ebadf24 ntdll: Ignore leading dots in hash_short_file_name(). 2024-06-07 09:08:02 +02:00
Alexandre Julliard 5ae8bf3d93 kernel32/tests: Add test for FPU control words on ARM64EC. 2024-06-06 20:46:03 +02:00
Brendan McGrath d88863805d server: Don't always return STATUS_OBJECT_NAME_INVALID on ENOTDIR.
Only return STATUS_OBJECT_NAME_INVALID if we're not looking for a
FILE_DIRECTORY_FILE.
2024-06-05 22:01:56 +02:00
Brendan McGrath 34446f8cb6 kernel32/tests: Test error code when FindFirstFileA uses file as directory. 2024-06-05 22:01:56 +02:00
Alexandre Julliard b9638ebc1c kernelbase: Fix the name of the default system locale. 2024-05-24 11:15:33 +02:00
Jinoh Kang d6e39da995 kernel32/tests: Document which fields may be overwritten later in gen_forward_chain_testdll().
Const correctness is helpful for figuring out which fields are mutable
and which ones are intended to stay constant.
2024-04-18 20:54:25 +02:00
Jinoh Kang c014ff7afe kernel32/tests: Fix argument order in subtest_export_forwarder_dep_chain() calls.
The parameter types are (size_t, size_t, BOOL).

Fixes: 4baada41a0
2024-04-18 20:54:25 +02:00
Jinoh Kang 4baada41a0 kernel32/tests: Test module refcounting with forwarded exports. 2024-04-15 18:13:10 +02:00
Mark Jansen 9e639ff1f6 kernel32/tests: Add tests for job object accounting.
Signed-off-by: Mark Jansen <mark.jansen@reactos.org>
2024-03-18 23:21:37 +01:00
Paul Gofman 8b3944e134 ntdll: Only allocate debug info in critical sections with RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO. 2024-03-14 20:52:33 +01:00
Eric Pouech 9897719562 server: Allow 0-write length in WriteProcessMemory().
Adapt to Win >= 10 behavior.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56357
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-26 22:44:35 +01:00
Jinoh Kang 232b18d820 kernel32/tests: Fix console test with odd-sized consoles. 2024-02-22 22:37:10 +01:00
Kartavya Vashishtha 1e34842799 kernelbase: Implement CopyFile2(). 2024-02-20 10:42:57 +01:00
Eric Pouech 5efab11752 kernel32/tests: Check if thread is suspended in debugger attachment tests.
Looks like thread is suspended until DBG_CONTINUE is sent on thread
creation debug event.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-16 11:36:58 +01:00
Paul Gofman 0b441c4c8f kernel32/tests: Add tests for critical section debug info presence. 2024-02-13 15:46:24 +01:00
Gabriel Ivăncescu e8f4909ac3 kernelbase: Copy the read-only attribute from the source.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-12 23:02:03 +01:00
Eric Pouech 52b9f8a9fa kernel32/tests: Remove todo scaffolding for CreateProcess() tests.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Eric Pouech 233074ded0 msvcrt: Don't reset invalid std handle in init.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Eric Pouech 4121a29b50 kernelbase: Don't use INVALID_HANDLE_VALUE as std handle in CreateProcess.
And don't infer detached console state from std handle values, but rely
on a NULL console handle.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Eric Pouech eba8b54870 kernel32/tests: Add tests for CreateProcess with invalid handles.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-12 23:02:02 +01:00
Alexandre Julliard 4141a14443 kernel32: Don't export RtlRaiseException on ARM64. 2024-02-06 16:36:19 +01:00
Alexandre Julliard 9088506029 kernel32: Move Wow64Get/SetThreadContext implementation to kernelbase. 2024-02-06 16:36:19 +01:00
Eric Pouech 626b2f1898 server: Preserve handle flags when inheriting a std handle.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:39:58 +01:00
Eric Pouech 1c7e1f1fc6 server: Implement support for DUPLICATE_SAME_ATTRIBUTES in DuplicateHandle().
This flag is documented on MSDN in ZwDuplicateObject() but not in
DuplicateHandle(). Yet functional on both.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:39:58 +01:00
Eric Pouech d68a0e650a kernel32/tests: Test DUPLICATE_SAME_ATTRIBUTES flag in DuplicateHandle().
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:39:58 +01:00
Eric Pouech da9210e038 kernel32/tests: Added tests about std handle flags inheritance.
Adding support for protect-from-close handle flag to CreateProcess
test infrastructure.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-06 11:35:47 +01:00
Alexandre Julliard d0e02b67eb kernel32/tests: Fix some test failures on ARM platforms. 2024-01-30 22:41:17 +01:00
Alexandre Julliard d1836e226c ntdll: Avoid calling DbgBreakPoint() in process_breakpoint(). 2024-01-29 17:18:58 +01:00
Bernhard Übelacker 702aeb3acb server: Allow VirtualQueryEx on "limited" handle.
A handle created with just PROCESS_QUERY_LIMITED_INFORMATION
should allow VirtualQueryEx / APC_VIRTUAL_QUERY.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56093
2024-01-18 18:08:48 +01:00
Hans Leidekker 77b3662517 kernel32/tests: Fix ProcessMachineTypeInfo tests. 2023-12-15 15:47:48 +01:00
Alexandre Julliard bd693d6755 kernel32/tests: Don't bother checking for errors in cleanup path.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55578
2023-12-15 11:03:48 +01:00
Alexandre Julliard 24f7869e93 server: Enforce a mapping size limit instead of relying on the Unix file system.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55667
2023-12-15 10:11:22 +01:00
Alexandre Julliard 7cd2821d67 kernelbase: Don't validate calendar id for GetCalendarInfo(CAL_ITWODIGITYEARMAX).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53845
2023-12-12 11:01:14 +01:00
Nikolay Sivov f27b62206c kernel32: Implement GetProcessInformation(ProcessMachineTypeInfo).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-12-08 22:31:38 +01:00
Billy Laws bc7083716b kernel32: Export RtlIsEcCode(). 2023-12-07 21:58:17 +01:00
Eric Pouech 1f478ea370 ntdll: Don't inherit std console handles for non CUI child process.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech a7c5e2413e kernelbase: GetStartupInfoW: set std handle only when USESTDHANDLES is set.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech 3f814c42c0 kernelbase: No longer cache GetStartupInfoW() results.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech 76018fbbee kernel32/tests: Add tests for GetStartupInfo(A|W).
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech 5545aef74e kernel32/tests: Identify untouched fields returned from GetStartupInfo.
GetStartupInfoW() doesn't set all the fields.
So in CreateProcess() tests, always use a marker for STARTUP_INFO
initialization; make use of that marker to properly identify
the std handles gotten from GetStartupInfo.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-12-05 21:24:37 +01:00
Eric Pouech 0c61713bc3 kernelbase: Reset std handles gotten from GetStartupInfo().
The std handles gotten from GetStartupInfo are only set when
process was created with STARTF_USESTDHANDLES flag.
And yes, Ansi and Unicode versions reset the std
handles to a different value.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech bf97f9490a ntdll: Restrict cases for std handle inheritance in CreateProcess().
Only allow std handle inheritance when:
- either bInherit flag of CreateProcess is TRUE,
- or child process is in CUI subsystem and STARTF_USESTDHANDLES is no
  used.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech 000f7faaa2 kernel32/tests: Add more tests about CreateProcess.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech 84079a62db kernel32/tests: Enable CreateProcess() tests on 64bit compilation.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Eric Pouech a55598b142 kernel32/tests: Introduce a new infrastructure for testing CreateProcess().
Move a couple of existing tests to this infrastructure.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-11-30 23:12:54 +01:00
Alexandre Julliard d3722971ef ntdll: Export __chkstk_arm64ec(). 2023-11-14 22:25:01 +01:00