kernel32: Mask out FILE_ATTRIBUTE_NOT_CONTENT_INDEXED to prevent a test failure under Windows
Dmitry Timoshkov
dmitry at codeweavers.com
Wed Nov 14 23:35:27 CST 2007
Hello,
if the indexing is disabled for some drive, XP adds FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
attribute to a file.
Changelog:
kernel32: Mask out FILE_ATTRIBUTE_NOT_CONTENT_INDEXED to prevent a test
failure under Windows.
---
dlls/kernel32/tests/file.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c
index d115a57..dece7c3 100644
--- a/dlls/kernel32/tests/file.c
+++ b/dlls/kernel32/tests/file.c
@@ -318,6 +318,7 @@ static void test__lcreat( void )
ok ( 0 != ret, "FindClose complains (%d)\n", GetLastError ());
ok (!strcmp (filename, search_results.cFileName),
"found unexpected name \"%s\"\n", search_results.cFileName);
+ search_results.dwFileAttributes &= ~FILE_ATTRIBUTE_NOT_CONTENT_INDEXED;
ok (FILE_ATTRIBUTE_ARCHIVE==search_results.dwFileAttributes,
"attributes of file \"%s\" are 0x%04x\n", search_results.cFileName,
search_results.dwFileAttributes);
--
1.5.3.4
More information about the wine-patches
mailing list