Commit 620089aa authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32/tests: Fix an uninitialized variable warning.

parent 510f7ee0
......@@ -1878,14 +1878,14 @@ static void test_SearchPathW(void)
HANDLE handle;
DWORD ret;
GetWindowsDirectoryW(pathW, ARRAY_SIZE(pathW));
/* NULL filename */
ret = SearchPathW(pathW, NULL, NULL, ARRAY_SIZE(buffW), buffW, &ptrW);
ok(ret == 0, "Expected failure, got %ld\n", ret);
ok(GetLastError() == ERROR_INVALID_PARAMETER,
"Expected ERROR_INVALID_PARAMETER, got %#lx\n", GetLastError());
GetWindowsDirectoryW(pathW, ARRAY_SIZE(pathW));
/* empty filename */
SetLastError(0xdeadbeef);
ret = SearchPathW(pathW, fileW, NULL, ARRAY_SIZE(buffW), buffW, &ptrW);
......
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