Roger Zoellner
575c1c9066
ntdll: Relax checks for valid affinity mask in NtSetInformationThread().
...
Signed-off-by: Roger Zoellner <zoellner.roger@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 14:12:06 +02:00
Alex Henrie
e3fe1b0946
ntdll/tests: Handle case where process doesn't have its own DEP policy.
...
If neither MEM_EXECUTE_OPTION_ENABLE nor MEM_EXECUTE_OPTION_DISABLE is
set in the ProcessExecuteFlags, the process is using the system DEP
setting.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 12:48:14 +02:00
Jacek Caban
8c9c2fca08
server: Support ObjectTypeInformation in pipe objects.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45743
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-03 15:53:18 +02:00
Marcus Meissner
0c790adf30
ntdll: Fix buffer size to MultiByteToWideChar.
...
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 13:30:43 +02:00
Gijs Vermeulen
7de2754cc6
ntdll/tests: Add Nt[WaitFor|Release]KeyedEvent test with NULL handle.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44620
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 09:33:25 +02:00
Zebediah Figura
d683d243f7
ntdll: Also accept \??\ as a global namespace prefix in RtlDosPathNameToNtPathName_U().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45654
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 10:06:45 +02:00
Zebediah Figura
8c7e141bb1
ntdll/tests: Add more tests for RtlDosPathNameToNtPathName_U().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 10:06:43 +02:00
Zebediah Figura
bbafba6d58
ntdll/tests: Add more tests for RtlGetFullPathName_U().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 10:06:41 +02:00
Zebediah Figura
ee5c46a55c
ntdll: Also accept \\? as a UNC or device path in RtlDetermineDosPathNameType_U().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-24 10:05:19 +02:00
Francois Gouget
f466fb4e53
ntdll/tests: Spelling fixes in comments.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-23 20:01:56 +02:00
Jacek Caban
d4e0f0a12f
server: Require FILE_READ_ATTRIBUTES access in get_named_pipe_info.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:02:30 +02:00
Jacek Caban
58233b47e0
kernel32: Always create file with FILE_READ_ATTRIBUTES access in CreateFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:02:28 +02:00
Jacek Caban
290320a8fe
server: Use pipe_end state in FSCTL_PIPE_LISTEN implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-17 18:47:00 +02:00
Jacek Caban
3375ccba2f
server: Use pipe stored in pipe_end in get_named_pipe_info.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 15:27:50 +02:00
Jacek Caban
c0905e08da
server: Use common implementation for pipe client and server get_sd and set_sd.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 15:27:40 +02:00
Jacek Caban
59dd8baeac
ntdll/tests: Add more NtQueryInformationFile tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 15:24:52 +02:00
Jacek Caban
584ffc2341
server: Don't use set_no_fd_status for error handling in pipe objects.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Jacek Caban
41e39c6a63
server: Improve FSCTL_PIPE_TRANSCEIVE error handling.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Jacek Caban
7038b9ef15
server: Improve named pipe write error handling.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Jacek Caban
91852564dc
server: Improve named pipe read error handling.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Jacek Caban
0973b8d2c3
server: Improve FSCTL_PIPE_PEEK error handling.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Jacek Caban
8e5bc0daf7
server: Store pipe state in pipe_end struct and return it in FSCTL_PIPE_PEEK.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Jacek Caban
5efd706c22
ntdll/tests: Add pipe state tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:07 +02:00
Michael Stefaniuc
9f7d802341
ntdll/tests: Avoid temp variables holding ARRAY_SIZE results.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-17 22:36:27 +02:00
Alex Henrie
28e8e9a164
ntdll: Return BIOS info from NtQuerySystemInformation on Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 12:57:53 +02:00
Alex Henrie
0bcee5eaf8
ntdll/tests: Add SystemFirmwareTableInformation tests.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 12:57:53 +02:00
Mark Jansen
5ae2b885e7
ntdll/tests: Add tests for RtlIpv6AddressToString and RtlIpv6AddressToStringEx.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-11 15:45:11 +02:00
Mark Jansen
bf6d38258e
ntdll/tests: Tests for RtlIpv4StringToAddressEx.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-11 15:45:11 +02:00
Michał Janiszewski
3d5d8903b8
ntdll: Prevent Find{Set, Clear}Run from reading past the end of bitmap.
...
This can be happen in sample arrays (hex):
FindSetRun: 00 00 00 00 00 00 00 ff
FindClearRun: ff ff ff ff ff ff ff 00
Signed-off-by: Michał Janiszewski <janisozaur@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-10 22:09:32 +02:00
Michał Janiszewski
961061419a
ntdll/tests: Add RtlFindNextForwardRun{Set, Clear} tests.
...
The tests in particular should trigger an edge case in implementation.
Signed-off-by: Michał Janiszewski <janisozaur@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-10 22:09:25 +02:00
Mark Jansen
1b1e3476b8
ntdll/tests: Tests for RtlIpv6StringToAddressEx.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-10 11:11:41 +02:00
Mark Jansen
4ad6e1b084
ntdll/tests: Tests for RtlIpv6StringToAddress.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 13:37:13 +02:00
Huw Davies
986d5a9958
ntdll/tests: Skip the map protect tests if we can't disable no-exec.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 13:35:04 +02:00
Michael Müller
4c13e1765f
ntdll: Implement LdrRegisterDllNotification and LdrUnregisterDllNotification.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 10:58:51 +02:00
Michael Stefaniuc
9ef8fa2a0b
ntdll/tests: Avoid ARRAY_SIZE-like macros.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 01:01:55 +02:00
Michael Stefaniuc
3400da025e
ntdll/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-22 01:01:55 +02:00
Zebediah Figura
b8927cf136
ntdll: Implement RtlWow64SetThreadContext().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 14:01:35 +02:00
Zebediah Figura
f135c81b31
ntdll: Implement RtlWow64GetThreadContext().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 14:01:35 +02:00
Sebastian Lackner
c61c33ee66
ntdll: Throw exception if invalid handle is passed to NtClose and debugger enabled.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:55 +02:00
Jacek Caban
f2cc9507aa
ntdll/tests: Add FSCTL_PIPE_TRANSCEIVE tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:03 +02:00
Zebediah Figura
f63474b6d5
ntdll/tests: Test DEP exceptions on x86-64.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-27 10:30:17 +02:00
Stefan Leichter
f2c51ab761
ntdll/tests: Add tests for RtlCreateRegistryKey.
...
Signed-off-by: Stefan Leichter <sle85276@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-15 14:24:01 +01:00
Stefan Leichter
f07e8ca8f0
ntdll: Fix RtlCheckRegistryKey when called with empty path.
...
Signed-off-by: Stefan Leichter <sle85276@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-15 14:24:00 +01:00
Zebediah Figura
a462735270
ntdll: Fix exception parameters on x86-64.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:35:29 +01:00
Andrew Wesie
5644022c26
ntdll: Handle icebp on x86-64.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:35:29 +01:00
Andrew Wesie
bd63cce8f5
ntdll: Handle interrupt 0x2c on x86-64.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:35:29 +01:00
Andrew Wesie
453c670ab8
ntdll/tests: Test exception codes on x86-64.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-13 20:35:29 +01:00
Zebediah Figura
08cc41459b
ntdll/tests: Add a test for ProcessImageFileNameWin32.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:58:12 -06:00
Zebediah Figura
d96a5a0304
ntdll/tests: Simplify ProcessImageFileName test.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:58:09 -06:00
Michael Müller
ab3c0a3e0a
ntdll: Implement ProcessPriorityClass in NtQueryInformationProcess.
...
Allows Process Hacker to show process priority.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:25:56 +01:00
Michael Müller
556ba38dd1
ntdll: Fix error code when querying too large memory address.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-28 17:24:36 +01:00
Jacek Caban
1ce2201ed8
server: Share security descriptor among all pipe instances.
...
Based on patch by Jonathan Doron.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 11:06:43 +01:00
Jacek Caban
c0d08e13c8
ntdll/tests: Added pipe security descriptor tests.
...
Based on patch by Jonathan Doron.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 18:39:19 +01:00
Andrey Gusev
c4dd0ff5ec
ntdll/tests: Fix resource leak.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-04 11:56:41 +01:00
Jacek Caban
d4d6330f0a
server: Add support for querying FileNameInformation on named pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 12:19:43 +01:00
Jacek Caban
514a157541
ntdll/tests: Add NtQueryInformationFile(FileNameInformation) on named pipes tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 11:52:51 +01:00
Akihiro Sagawa
081eae7ac3
ntdll/tests: Add tests for time zone names.
...
Test shows internal NT API returns an indirect string, e.g.
@tzres.dll,-32, not a localized one in Vista or later.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-12 18:30:14 +01:00
Hans Leidekker
fdc51fc278
ntdll: Fix size returned from RtlMakeSelfRelativeSD on 64-bit.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-24 16:48:02 +01:00
Alexandre Julliard
a5b67f3fdd
ntdll: Use WINAPIV calling convention for variadic functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:16:54 +01:00
Nikolay Sivov
86370cc345
ntdll: Added RtlDosPathNameToNtPathName_U_WithStatus().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-23 10:33:44 +02:00
Zebediah Figura
7477792b4c
server: FSCTL_PIPE_LISTEN on a pipe client should return STATUS_ILLEGAL_FUNCTION.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 19:52:36 +02:00
Zebediah Figura
cd4dc08b30
ntdll/tests: Don't abort if NtCancelFileIoEx() is missing.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 19:52:22 +02:00
Jacek Caban
4e17ff7c98
ntdll/tests: Remove no longer needed Sleep calls.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-09 19:52:38 +02:00
Jacek Caban
1e87417e7f
ntdll: Always use server ioctl for FSCTL_PIPE_PEEK.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-05 19:33:09 +02:00
Jacek Caban
7eb7854161
server: Use server side named pipe implementation in byte mode.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-04 21:40:56 +02:00
Jacek Caban
3f07c6e256
server: Add FileFsDeviceInformation implementation for named pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 09:41:19 +02:00
Jacek Caban
4df0162caf
ntdll/tests: Test NtQueryVolumeInformationFile calls on named pipe object.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-25 23:29:10 +02:00
Alistair Leslie-Hughes
3b05f552e2
ntdll/tests: Use standard wine_dbgstr_longlong.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-08 20:13:55 +09:00
Alexandre Julliard
abe0b1c57b
server: Initialize debug registers in new threads if necessary.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-27 17:04:04 +02:00
Alexandre Julliard
f680ccb898
ntdll/tests: Test hardware breakpoints in newly created thread.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-26 22:14:00 +02:00
Michael Müller
26f9c73eb0
ntdll/tests: Test debug register values in newly created thread.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-26 22:13:58 +02:00
Alexandre Julliard
2bb668b1da
ntdll: Get some values from the parent stackframe in RtlCaptureContext.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:30 +02:00
Alexandre Julliard
1c49905182
ntdll: Add an assembly wrapper to return correct values for the current thread in NtGetContextThread.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:29 +02:00
Jacek Caban
82e6713b75
server: Don't allow APCs on objects associated with completion port.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:11 +02:00
Francois Gouget
e3b1437e1b
ntdll/tests: A spelling fix in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-06 18:49:38 +02:00
Akihiro Sagawa
7c06d99e83
ntdll/tests: Add more tests if we have real VM counters.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 19:34:24 +02:00
Alistair Leslie-Hughes
a3c1fbae2a
ntdll/tests: Use standard wine_dbgstr_longlong.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 15:57:45 +02:00
Jacek Caban
c56c42ff79
server: Use create_request_async in ioctl request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:32:49 +02:00
Alex Henrie
146cf041d9
ntdll: Always fill PagefileUsage counter with a nonzero value on Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 21:57:12 +02:00
Alex Henrie
d6dfe19794
ntdll/tests: Dump entire VM_COUNTERS structure.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 21:57:12 +02:00
Jacek Caban
4370073bbf
ntdll/tests: Added FSCTL_PIPE_PEEK tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 11:58:09 -05:00
Alex Henrie
19a79f4228
ntdll: Implement ProcessVmCounters for Linux for other processes.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-09 16:37:42 -05:00
Jacek Caban
4bf58b6e10
ntdll/tests: Added more completion port tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-02 20:49:08 +02:00
Michael Müller
5a96399b66
ntdll: Implement LdrEnumerateLoadedModules.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:13 +02:00
Michael Müller
e5ad8ae123
ntdll/tests: Add tests for LdrEnumerateLoadedModules.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:13 +02:00
Christian Inci
8335d9152f
ntdll/tests: Check debug registers of a newly created thread.
...
Signed-off-by: Christian Inci <chris.wine@broke-the-inter.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-10 21:51:40 +02:00
Jacek Caban
e024094b75
ntdll/tests: Added tests of partial reads and reads with invalid wait handle.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:15 +02:00
Jacek Caban
0d6b783c80
ntdll/tests: Run read tests in all modes and directions.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:15 +02:00
Jacek Caban
7c26ebfc99
ntdll/tests: Moved pipe read tests to pipe.c.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 13:21:42 +02:00
Jacek Caban
b682e1c41d
server: Use server-side I/O for message mode named pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:07:09 +01:00
Alex Henrie
bf7a97e5d3
ntdll: Implement ProcessVmCounters for Linux.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:38 +01:00
Francois Gouget
5a2aa5e1d9
ntdll/tests: A spelling fix in an ok() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:27:49 +01:00
Sebastian Lackner
2c733057e9
ntdll: Implement FileAccessInformation class in NtQueryInformationFile.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 17:47:45 +01:00
Jacek Caban
14206495e3
ntdll: Don't modify LockCount in RtlLeaveCriticalSection if section is not acquired.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 16:33:36 +01:00
Józef Kucia
c530fb9e28
ntdll: Fix NtFlushBuffersFile() for files with FILE_APPEND_DATA access.
...
Fixes a regression introduced by commit
f7d40d45da
.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 20:43:40 +01:00
Józef Kucia
a0aac49591
ntdll/tests: Add test for flushing file with FILE_APPEND_DATA access.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 20:43:39 +01:00
Paul Gofman
f7d40d45da
ntdll: NtFlushBuffersFile should fail if the file handle has no write access.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 15:48:01 +01:00
Paul Gofman
85aa2067b0
ntdll/tests: Add test for NtFlushBuffersFile error conditions.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 15:47:59 +01:00
Jacek Caban
bede6499ed
server: Create async object in ioctl request handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 14:24:11 +01:00
Sebastian Lackner
f9ede5c4c1
ntdll/tests: Add tests for FileIoCompletionNotificationInformation info class.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 20:54:04 +01:00
Sebastian Lackner
627829daa3
ntdll: Implement FileIdInformation class in NtQueryInformationFile.
...
Based on a patch by Jonathan Doron.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Sebastian Lackner
8b3d43acab
ntdll/tests: Add tests for FileIdInformation class.
...
Based on a patch by Jonathan Doron.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:39 +01:00
Jonathan Doron
9c72376c8c
ntdll: Define more file information classes.
...
Signed-off-by: Jonathan Doron <jond@wizery.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-10 21:39:29 +01:00
Jacek Caban
0d23bfd398
ntdll: Check output buffer before server_write_file call.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:53 +01:00
Jacek Caban
a240bfcf9b
ntdll: Check input buffer before server_read_file call and don't touch event on error.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 21:38:53 +01:00
Sebastian Lackner
b60b50ba35
ntdll: Catch page faults in NtQueryPerformanceCounter.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 19:05:43 +01:00
Huw Davies
8d8507808e
ntdll/tests: The fpu exception offset is broken on 32-bit Windows 8 too.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-25 19:49:50 +01:00
Huw Davies
9c5b15aaa4
ntdll/tests: Listen on the pipe to allow the client to connect on Windows 8 and 10.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-23 22:36:40 +01:00
Jacek Caban
e891be17b2
ntdll: Return NULL key on NtCreateKey failure.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:47 -07:00
Jacek Caban
eeb4ed4c70
ntdll/tests: Added more registry symlink tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:47 -07:00
Jacek Caban
86b5ec3fd1
ntdll/tests: Added a test of using NtCancelIoEx on iosb associated with pipe listening.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 22:33:22 +02:00
Detlef Riekenberg
1ebbfb1a1d
ntdll/tests: Use case insensitive compare for filenames.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-01 15:14:10 +02:00
Daniel Lehman
594ddb6140
ntdll: Set Rip in for longjmp in RtlRestoreContext.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 23:23:39 +09:00
Sebastian Lackner
a9f648ef69
ntdll: Do not call group cancel callback for finished simple callbacks.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:51:24 +09:00
Sebastian Lackner
be7bcdc0f9
ntdll: Group cancel callbacks should be executed after waiting for pending callbacks.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:50:50 +09:00
Sebastian Lackner
a8830a2478
ntdll: Call group cancel callback with the correct arguments.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:50:44 +09:00
Sebastian Lackner
5144708392
ntdll/tests: Add tests for releasing threadpool objects during TpReleaseCleanupGroupMembers.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:50:39 +09:00
Sebastian Lackner
914d597eb3
ntdll/tests: Use longer waits to reduce risk of random failures on the testbot.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:50:28 +09:00
Huw Davies
92fe612acb
ntdll/tests: Skip broken SYSTEM_HANDLE_INFORMATION behaviour.
...
Vista and 2008 only copy the first handle's information into the
buffer.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 20:38:15 +09:00
Piotr Caban
b23de3cd4a
ntdll: Add support for exceptions inside termination handlers in __C_specific_handler.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 11:56:29 +09:00
Huw Davies
cf22192b28
ntdll/tests: Dump the handle table on failure.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:39 +09:00
Matt Robinson
4a6bd3d200
ntdll: Catch page fault in RtlWow64EnableFsRedirectionEx.
...
Signed-off-by: Matt Robinson <git@nerdoftheherd.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 12:39:18 +09:00
Piotr Caban
f333bf47a8
ntdll: Keep drive letter size in RtlGetFullPathName_U when full path is specified.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-29 23:12:11 +09:00
Michael Müller
1311c8157b
ntdll: NtUnmapViewOfSection should succeed for all offsets within the mapped range.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 22:03:21 +09:00
Alexandre Julliard
2f514becdb
kernel32: Store synchronization objects under the session directory.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-18 16:21:24 +09:00
Sebastian Lackner
fb45a20b4c
ntdll/tests: Use inline implementation of NtCurrentTeb for rtl tests.
...
Also enable HardErrorDisabled TEB tests on x86_64.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:13:28 +09:00
Sebastian Lackner
8e8e03de63
ntdll/tests: Use inline implementation of NtCurrentTeb for exception tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:13:24 +09:00
Nikolay Sivov
b10312d078
ntdll/tests: Fix some string leaks (Valgrind).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:10:43 +09:00
Alexandre Julliard
6261e26764
ntdll: Support remaining information classes in NtQueryDirectoryFile.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:50 +09:00
Daniel Lehman
7950562e9e
ntdll: Fix prev_count from NtReleaseMutant.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:27 +09:00
Daniel Lehman
142730ea66
ntdll: Add NtQueryMutant.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:26 +09:00
Alexandre Julliard
d18c14c311
ntdll/tests: Add tests for directory sorting.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:26 +09:00
Alexandre Julliard
12fc123338
ntdll: Cache the entire directory contents and sort the names before returning files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:26 +09:00
Alexandre Julliard
5006040541
ntdll: Implement RtlCompareUnicodeStrings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-03 15:14:20 +09:00
Alexandre Julliard
ebf9c5cd17
ntdll/tests: Convert directory filename tests to Unicode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-03 15:14:20 +09:00
Alexandre Julliard
1c31ba252c
ntdll: Store the directory identity and search mask in the directory cache.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:30:11 +09:00
Alexandre Julliard
a4dcfd1195
ntdll: Add tests for buffer overflows in NtQueryDirectoryFile.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 00:54:08 +09:00
Sebastian Lackner
9acff7550d
ntdll: Do not update iosb.Status after FSCTL_PIPE_LISTEN call.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 17:08:30 +09:00
Sebastian Lackner
f4a5b4561d
ntdll/tests: Add tests for iosb.Status value after pending FSCTL_PIPE_LISTEN call.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 16:44:24 +09:00
Sebastian Lackner
7389e84dd0
ntdll/tests: Fix some test failures on Win 8+.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 16:44:24 +09:00
Sebastian Lackner
18ea2e5f88
ntdll/tests: Add test for threadpool environment version 3.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 15:57:32 +09:00
Thomas Faber
5441f8352c
ntdll/tests: Test NtOpenKey with zero access.
...
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 17:29:17 +09:00
Sebastian Lackner
dcf914857c
ntdll/tests: Allow broken SpinCount for some Win 8+ systems.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 23:15:38 +09:00
Frédéric Delanoy
06b39c982d
ntdll/tests: Use todo_wine_if() in tests.
...
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:09 +09:00
Sebastian Lackner
123185c3a2
ntdll: Set correct number of arguments for breakpoint exceptions.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:12 +09:00
Sebastian Lackner
d0cc0dd69f
ntdll: Fix up instruction pointer in context for EXCEPTION_BREAKPOINT on x86_64.
...
Similar to eab168cf9e
for x86.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:08 +09:00
Sebastian Lackner
109e847f2a
ntdll/tests: Add separate tests for exception handling of int $0x3.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:06 +09:00
Sebastian Lackner
4e878e9114
ntdll/tests: Add additional tests for instruction pointer in debug service tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:03 +09:00
Sebastian Lackner
d0b88e7454
ntdll/tests: Add more tests for calling int $0x2d on x86 and x86_64.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 00:49:12 +09:00
Sebastian Lackner
2689b7b1be
ntdll/tests: Add tests for RtlInitializeCriticalSectionEx.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:29 +09:00
Henri Verbeet
e65c89f1c5
ntdll: Add special handling for int $0x2d exceptions.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:37 +09:00
Charles Davis
e0311318fc
ntdll: Add some more NTSTATUS->DOS error mappings.
...
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:04 +09:00
Sebastian Lackner
446067b34d
ntdll/tests: Fix flags passed to VirtualFree in exception tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:39:03 +09:00
Alexandre Julliard
14c3f703dd
ntdll/tests: Add some tests for opening objects through symlinks.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:07:30 +09:00
Michael Müller
5c50f65830
ntdll: Implement SystemRecommendedSharedDataAlignment class in NtQuerySystemInformation.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:54 +09:00
Alexandre Julliard
f17fe5a4ad
ntdll/tests: Remove some macros.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 22:10:54 +09:00
Sebastian Lackner
5b478f7c7e
ntdll/tests: Simplify exception tests by using todo_wine_if.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 21:50:19 +09:00
Alexandre Julliard
39e60dc680
server: Support opening objects from any root, not only directories.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 20:36:17 +09:00
Alexandre Julliard
b35642f516
ntdll/tests: Fix a couple of test failures on limited user accounts.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 12:01:55 +09:00
Alexandre Julliard
883ca7395b
ntdll/tests: Add some tests for registry path names.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-08 22:56:38 +09:00
Alexandre Julliard
b21a324070
server: Use the link_name operation to create named objects.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-05 00:20:01 +09:00
Alexandre Julliard
37503be654
server: Fix checks for a valid directory in object attributes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-01 14:57:37 +09:00
Alexandre Julliard
6fe37f35bf
ntdll: Add tests for the length of the object attributes structure.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-30 00:30:25 +09:00
Alexandre Julliard
b93c78dc6c
ntdll/tests: Add a helper function to run tests across all kernel object types.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-30 00:29:01 +09:00
Francois Gouget
93988c5039
ntdll/tests: Fix an infinite loop on platforms where NtQuerySystemInformationEx() is not implemented.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:30:50 +09:00
Alexandre Julliard
38f9a788c4
ntdll: Add tests for NULL object attributes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +09:00
Alexandre Julliard
fe0924625f
ntdll: Add a helper to validate attributes in open calls, and use a common pattern in all calls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:11 +09:00
Alexandre Julliard
b3064d748b
server: Implement NtOpenJobObject.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 16:38:53 +09:00
Andrew Eikum
a124064ce5
ntdll: Implement SystemLogicalProcessorInformationEx.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:49:31 +09:00
Alexandre Julliard
8b2ba27c86
ntdll: Add tests for kernel object names in the various open functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:41:30 +09:00
Alexandre Julliard
3e33f6c2d9
ntdll/tests: Fix some more failures on restricted Windows.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 12:15:48 +09:00
Alexandre Julliard
abeb60f017
ntdll/tests: Add some more tests for kernel object names.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 22:32:40 +09:00
Alexandre Julliard
29e0178cf5
ntdll/tests: Fix a test failure on restricted Windows.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 21:36:28 +09:00
Alexandre Julliard
cd6e9c38e4
server: Fix constraints on the length of NT object names.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 20:48:08 +09:00
Alex Henrie
a228d7d980
ntdll/tests: Correct signaled / not signaled error messages.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-09 17:30:04 +09:00
Sebastian Lackner
6483c07b4e
ntdll/tests: Add tests for setting debug registers with NtSetContextThread.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 15:50:54 +01:00
Nikolay Sivov
ae1fe69e39
kernel32: Forward GetLogicalProcessorInformationEx() to ntdll.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:29 +01:00
Nikolay Sivov
114123370b
ntdll: Add NtQuerySystemInformationEx() stub.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:26 +01:00
Nikolay Sivov
c9c138f53f
ntdll/tests: Some tests for NtQuerySystemInformationEx().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:20 +01:00
Sebastian Lackner
08706ef357
server: Implement wineserver call for SystemHandleInformation.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-29 17:51:59 +01:00
Sebastian Lackner
e4e906c871
ntdll/tests: Add more tests for SystemHandleInformation.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:51:06 +01:00
Piotr Caban
a8ef261493
ntdll: Fix NtQueryDirectoryFile behavior on short file names on case insensitive file systems.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 20:26:48 +01:00
Sebastian Lackner
1980834c7d
ntdll: ProcessDebugFlags should return debug_children flag instead of !debugger_present.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:14:43 +01:00
Sebastian Lackner
85df0c61e5
ntdll/tests: Add more tests for ProcessDebugFlags.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 16:26:03 +09:00
Qian Hong
b4172c08dd
ntdll/tests: Restore old value in a more context independent way.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-03 16:23:34 +09:00
Qian Hong
6a03e618df
ntdll/tests: Add SIMD exception test for floating point invalid operation fault.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-03 16:23:24 +09:00
Alexandre Julliard
9cad1cc847
ntdll/tests: Use more reasonable timeouts and avoid long long constants.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 21:38:30 +09:00
Thomas Faber
429fcf3a9d
ntdll/tests: Fix build with PSDK headers.
...
CRITICAL_SECTION is distinct from RTL_CRITICAL_SECTION in PSDK.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:06 +09:00
Jacek Caban
26df0863ca
ntdll: Added more NtOpenKey tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 20:55:16 +09:00
Sebastian Lackner
b1c8e0591c
ntdll/tests: Print the correct status code in ok() messages.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:09:24 +09:00
Jacek Caban
731d09fa9d
server: Store all 32 bits of value type.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-12 23:42:26 +09:00
Jacek Caban
5eb3035374
ntdll: Added KeyCachedInformation key info class implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-12 22:17:02 +09:00
Sebastian Lackner
163b3f1e38
ntdll/tests: Add tests for multiple registry notifications per key.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:27 +09:00
Jacek Caban
7bd852c6ce
ntdll: Added NtNotifyChangeMultipleKeys implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:45 +09:00
Jacek Caban
e0d51609a1
server: Notify parent key when subkey is created.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:44 +09:00
Jacek Caban
deba2faf60
server: Reset event in set_registry_notification.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:44 +09:00
Jacek Caban
7d66a01fc2
ntdll: Return STATUS_PENDING in NtNotifyChangeKey if async notify is performed.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:16:44 +09:00
Jacek Caban
a0d0d0dd0a
ntdll: Fixed argument order in NtNotifyChangeKey.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 23:20:50 +09:00
Jacek Caban
4269423ee4
ntdll: Added NtOpenKeyEx implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Thomas Faller
c96684c3b2
ntdll/tests: Fix use of uninitialized value.
...
Signed-off-by: Thomas Faller <tfaller1@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 13:27:34 +09:00
Sebastian Lackner
7c46763ea7
ntdll: Implement RtlIsCriticalSectionLocked[ByThread].
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:47:34 +09:00
Sebastian Lackner
b028f2c076
ntdll/tests: Add tests for RtlIsCriticalSectionLocked[ByThread].
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-11 13:47:23 +09:00
Sebastian Lackner
381c034be3
ntdll: Wait_thread_proc should not terminate on user APC.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 20:56:27 +09:00
Sebastian Lackner
e37cdbbc2c
ntdll/tests: Add Sleep to make threadpool wait tests more reliable.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 20:56:17 +09:00
Sebastian Lackner
b8315e87f1
ntdll/tests: Add tests for calling NtReadFile/NtWriteFile on directory.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:17:05 +09:00
Sebastian Lackner
0b1204d870
ntdll/tests: Add tests for RtlRegisterWait.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-07 13:27:23 +09:00
Sebastian Lackner
f97a18f8c0
ntdll/tests: Limit number of pool threads to avoid random test failures.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-07 13:27:23 +09:00
Sebastian Lackner
53c8345c6d
ntdll/tests: Fix test failures on Windows 10.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-07 13:27:23 +09:00
Michael Müller
00d966cd3a
ntdll: Return STATUS_OBJECT_NAME_INVALID in wine_nt_to_unix_file_name for prefix-only paths.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
Michael Müller
24ea49b6ab
ntdll/tests: Add additional tests for NtQueryFullAttributesFile.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
André Hentschel
c6b888f16f
ntdll/tests: Simplify the RtlRandom test.
2015-09-25 20:59:55 +02:00
Lauri Kenttä
b3d51fb78b
ntdll/tests: Fix error message.
2015-09-15 17:00:32 +09:00
Sebastian Lackner
ec851647e2
server: Implement open_file_object for rootdir pointing to file object.
2015-08-21 14:39:21 +09:00
Sebastian Lackner
84d2610aaf
ntdll/tests: Add additional tests for calling NtOpenFile with file object as RootDirectory.
2015-08-21 14:36:12 +09:00
Sebastian Lackner
1f2a443cb4
server: Implement support for FileLinkInformation class in NtSetInformationFile.
2015-08-21 14:36:02 +09:00
Qian Hong
57d443824a
ntdll/tests: Add tests for FileLinkInformation class.
...
Based on the FileRenameInformation tests by Sebastian Lackner.
2015-08-21 14:35:18 +09:00
Sebastian Lackner
857d436784
ntdll: Implement FileRenameInformation support.
2015-08-20 18:34:13 +09:00
Sebastian Lackner
6899eade5d
ntdll/tests: Add additional tests for FileRenameInformation.
2015-08-20 18:33:45 +09:00
Jianqiu Zhang
a5b58144a5
ntdll/tests: Add basic tests for FileRenameInformation.
2015-08-20 18:33:39 +09:00
Erich E. Hoover
6955a298f4
server: Do not permit FileDispositionInformation to delete a file without write access.
2015-08-19 20:19:58 +09:00
Sebastian Lackner
0fabfe7d6b
server: Add support for setting file disposition information.
...
Based on a patch by Dmitry Timoshkov.
2015-08-19 20:19:57 +09:00
Andrey Gusev
5cdcd4493f
Assorted spelling and typos fixes.
2015-08-18 15:00:13 +09:00
André Hentschel
c4cd981a61
ntdll/tests: Add ARM64 support for map protection tests.
2015-08-17 16:59:32 +09:00
Sebastian Lackner
905bf79337
server: Store correct entry point for first thread.
2015-07-30 11:37:15 +02:00
Sebastian Lackner
22f0611cf9
ntdll/tests: Add tests for ThreadQuerySetWin32StartAddress info class.
2015-07-29 21:44:03 +02:00
Sebastian Lackner
c774a8c3ae
ntdll/tests: Add basic tests for RtlQueueWorkItem.
2015-07-28 09:54:05 +02:00
Sebastian Lackner
db1e8a686e
ntdll/tests: Add tests for RtlDecompressFragment.
2015-07-10 14:54:57 +09:00
Sebastian Lackner
0e7bd45571
ntdll/tests: Add tests for RtlDecompressBuffer.
2015-07-10 14:54:54 +09:00
Sebastian Lackner
e3503799d9
ntdll: Implement RtlDecompressFragment.
...
Based on a patch by Michael Müller.
2015-07-10 14:54:50 +09:00
Sebastian Lackner
577332f612
ntdll: Implement semi-stub for RtlGetCompressionWorkSpaceSize.
2015-07-09 17:34:48 +09:00
Sebastian Lackner
ee899dc55e
ntdll/tests: Add tests for RtlGetCompressionWorkSpaceSize.
2015-07-09 17:34:46 +09:00
Sebastian Lackner
275424e939
ntdll: Implement semi-stub for LZNT1 compression in RtlCompressBuffer.
...
This stub implementation just emits uncompressed blocks with
appropriate chunk headers.
2015-07-09 17:34:41 +09:00
Sebastian Lackner
025ea11dc4
ntdll/tests: Add tests for RtlCompressBuffer.
2015-07-09 17:34:37 +09:00
Sebastian Lackner
634bbed3fb
ntdll/tests: Add threadpool wait tests with more than 63 objects.
2015-07-06 14:49:39 +09:00
Sebastian Lackner
553ae488d0
ntdll/tests: Add basic tests for threadpool wait objects.
2015-07-06 14:49:39 +09:00
Sebastian Lackner
9f71015a99
ntdll/tests: Add tests for threadpool timer merging.
2015-07-03 13:06:50 +09:00
Sebastian Lackner
aefb85ddab
ntdll/tests: Add basic tests for threadpool timer functions.
2015-07-03 13:06:45 +09:00
Sebastian Lackner
66c46e6960
ntdll/tests: Add tests for TpDisassociateCallback.
2015-07-03 13:06:21 +09:00
Sebastian Lackner
3dc1c6442a
ntdll/tests: Add tests for TpCallbackReleaseSemaphoreOnCompletion and finalization callback.
2015-07-02 14:53:56 +09:00
Sebastian Lackner
eb974bcd7a
ntdll: Implement instance objects and the TpCallbackMayRunLong function.
...
The instance is marked as long-running even if TpCallbackMayRunLong fails,
a second call will lead to an exception on Windows.
2015-07-02 14:53:02 +09:00
Sebastian Lackner
e8d4b40386
ntdll/tests: Add tests for threadpool group cancel callback.
2015-07-02 14:52:32 +09:00
Sebastian Lackner
b75d7f064c
ntdll/tests: Add threadpool scheduler tests for work items.
2015-07-01 19:18:16 +09:00
Sebastian Lackner
17cd2a8b24
ntdll/tests: Add basic tests for threadpool work items.
2015-07-01 19:18:16 +09:00
Sebastian Lackner
3606b47139
ntdll/tests: Add tests for TpAllocCleanupGroup and related functions.
2015-07-01 19:18:15 +09:00
Sebastian Lackner
db9fc9141e
ntdll: Implement TpSimpleTryPost and basic threadpool infrastructure.
2015-07-01 19:18:13 +09:00
André Hentschel
8d4917e865
include: Add IMAGE_LOAD_CONFIG_DIRECTORY64 definition.
2015-06-24 15:37:02 +09:00
Sebastian Lackner
bdef5c5508
ntdll/tests: Add tests for info struct size for FileDispositionInformation.
2015-06-11 15:32:30 +09:00
Qian Hong
ef3ed04cdc
server: Fix type name of directory file.
2015-06-05 14:32:27 +09:00
Qian Hong
f208c50cc0
server: Fix type name of File.
2015-06-05 14:32:23 +09:00
Qian Hong
bdc223ad39
server: Fix type name of IoCompletion.
2015-06-05 14:32:15 +09:00