[NTDLL_APITEST] Fix NtCreateFile test on x64

This commit is contained in:
Timo Kreuzer 2024-09-12 13:09:45 +03:00
parent c52763f7de
commit 8e047e931e

View file

@ -15,7 +15,7 @@ START_TEST(NtCreateFile)
Status = NtCreateFile(&FileHandle, Status = NtCreateFile(&FileHandle,
FILE_READ_DATA, FILE_READ_DATA,
(POBJECT_ATTRIBUTES)(ULONG_PTR)0xCCCCCCCCCCCCCCCCULL, (POBJECT_ATTRIBUTES)(ULONG_PTR)0xCCCCCCCCCCCCCCC8ULL,
&StatusBlock, &StatusBlock,
NULL, NULL,
FILE_ATTRIBUTE_NORMAL, FILE_ATTRIBUTE_NORMAL,
@ -26,4 +26,18 @@ START_TEST(NtCreateFile)
0); 0);
ok_hex(Status, STATUS_ACCESS_VIOLATION); 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);
} }