[KMTESTS:KERNEL32]

Magic values--;

svn path=/trunk/; revision=75916
This commit is contained in:
Pierre Schweitzer 2017-09-21 08:52:27 +00:00
parent 31316a72ad
commit d8753f3e88

View file

@ -36,7 +36,7 @@ START_TEST(FileAttributes)
/* Set invalid attributes */ /* Set invalid attributes */
KmtSendUlongToDriver(IOCTL_EXPECT_SET_ATTRIBUTES, FILE_ATTRIBUTE_VALID_SET_FLAGS); KmtSendUlongToDriver(IOCTL_EXPECT_SET_ATTRIBUTES, FILE_ATTRIBUTE_VALID_SET_FLAGS);
Ret = SetFileAttributesW(FileName, 0xFFFFFFFF); Ret = SetFileAttributesW(FileName, INVALID_FILE_ATTRIBUTES);
ok(Ret == TRUE, "SetFileAttributesW returned %d, error %lu\n", Ret, GetLastError()); ok(Ret == TRUE, "SetFileAttributesW returned %d, error %lu\n", Ret, GetLastError());
/* Query read-only attribute */ /* Query read-only attribute */
@ -60,9 +60,9 @@ START_TEST(FileAttributes)
ok_eq_hex(Attributes, 0); ok_eq_hex(Attributes, 0);
/* Query invalid attributes */ /* Query invalid attributes */
KmtSendUlongToDriver(IOCTL_RETURN_QUERY_ATTRIBUTES, 0xFFFFFFFF); KmtSendUlongToDriver(IOCTL_RETURN_QUERY_ATTRIBUTES, INVALID_FILE_ATTRIBUTES);
Attributes = GetFileAttributesW(FileName); Attributes = GetFileAttributesW(FileName);
ok_eq_hex(Attributes, 0xFFFFFFFF); ok_eq_hex(Attributes, INVALID_FILE_ATTRIBUTES);
/** Directory attribute **/ /** Directory attribute **/
/* Set read-only and directory attribute */ /* Set read-only and directory attribute */