diff --git a/modules/rostests/apitests/ntdll/NtCreateFile.c b/modules/rostests/apitests/ntdll/NtCreateFile.c index 88f5649a975..8f7a75f47e4 100644 --- a/modules/rostests/apitests/ntdll/NtCreateFile.c +++ b/modules/rostests/apitests/ntdll/NtCreateFile.c @@ -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); }