mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
kernel32/tests: Fix an uninitialized variable warning.
This commit is contained in:
parent
510f7ee01d
commit
620089aade
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue