Module: wine Branch: master Commit: 620089aade3dc040595275676284a88ef10dad72 URL: https://gitlab.winehq.org/wine/wine/-/commit/620089aade3dc040595275676284a88...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Dec 8 14:52:45 2022 +0100
kernel32/tests: Fix an uninitialized variable warning.
---
dlls/kernel32/tests/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c index 2c657e26b24..7e122780602 100644 --- a/dlls/kernel32/tests/path.c +++ b/dlls/kernel32/tests/path.c @@ -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);