https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8e047e931e64fa9dcb940…
commit 8e047e931e64fa9dcb940f4ac19c8ef1b4f8175c
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Sep 12 13:09:45 2024 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Sep 15 19:28:07 2024 +0300
[NTDLL_APITEST] Fix NtCreateFile test on x64
---
modules/rostests/apitests/ntdll/NtCreateFile.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
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);
}