Commit d6a044c8 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

ntdll/tests: Don't call lstrlenW on non-null-terminated buffer.

parent d5d49464
......@@ -350,7 +350,7 @@ static void test_NtQueryDirectoryFile_case(void)
}
mask.Buffer = testmask;
mask.Length = mask.MaximumLength = lstrlenW(testmask) * sizeof(WCHAR);
mask.Length = mask.MaximumLength = sizeof(testmask);
pNtQueryDirectoryFile(dirh, NULL, NULL, NULL, &io, data, data_size,
FileBothDirectoryInformation, TRUE, &mask, FALSE);
ok(U(io).Status == STATUS_SUCCESS, "failed to query directory; status %x\n", U(io).Status);
......
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