mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTDLL_APITEST] Fix NtCreateFile test on x64
This commit is contained in:
parent
c52763f7de
commit
8e047e931e
1 changed files with 15 additions and 1 deletions
|
@ -15,7 +15,7 @@ START_TEST(NtCreateFile)
|
|||
|
||||
Status = NtCreateFile(&FileHandle,
|
||||
FILE_READ_DATA,
|
||||
(POBJECT_ATTRIBUTES)(ULONG_PTR)0xCCCCCCCCCCCCCCCCULL,
|
||||
(POBJECT_ATTRIBUTES)(ULONG_PTR)0xCCCCCCCCCCCCCCC8ULL,
|
||||
&StatusBlock,
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
|
@ -26,4 +26,18 @@ START_TEST(NtCreateFile)
|
|||
0);
|
||||
|
||||
ok_hex(Status, STATUS_ACCESS_VIOLATION);
|
||||
|
||||
Status = NtCreateFile(&FileHandle,
|
||||
FILE_READ_DATA,
|
||||
(POBJECT_ATTRIBUTES)(ULONG_PTR)0xCCCCCCCCCCCCCCCFULL,
|
||||
&StatusBlock,
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
FILE_SHARE_READ,
|
||||
FILE_OPEN_IF,
|
||||
FILE_NON_DIRECTORY_FILE,
|
||||
NULL,
|
||||
0);
|
||||
|
||||
ok_hex(Status, STATUS_DATATYPE_MISALIGNMENT);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue