Commit 4142fc9b authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll/tests: Don't test . and .. masks, they don't work on Windows.

parent 2d0653e2
...@@ -261,6 +261,8 @@ static void test_NtQueryDirectoryFile(void) ...@@ -261,6 +261,8 @@ static void test_NtQueryDirectoryFile(void)
for (i = 0; testfiles[i].name; i++) for (i = 0; testfiles[i].name; i++)
{ {
UNICODE_STRING mask; UNICODE_STRING mask;
if (testfiles[i].nameW[0] == '.') continue; /* . and .. as masks are broken on Windows */
mask.Buffer = testfiles[i].nameW; mask.Buffer = testfiles[i].nameW;
mask.Length = mask.MaximumLength = lstrlenW(testfiles[i].nameW) * sizeof(WCHAR); mask.Length = mask.MaximumLength = lstrlenW(testfiles[i].nameW) * sizeof(WCHAR);
test_flags_NtQueryDirectoryFile(&attr, testdirA, &mask, FALSE, TRUE); test_flags_NtQueryDirectoryFile(&attr, testdirA, &mask, FALSE, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment