kernel32/tests: Fix an uninitialized variable warning.

This commit is contained in:
Alexandre Julliard 2022-12-08 14:52:45 +01:00
parent 510f7ee01d
commit 620089aade

View file

@ -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);