diff --git a/dlls/lz32/tests/lzexpand_main.c b/dlls/lz32/tests/lzexpand_main.c index 05704ce8270..fe1ae83cf03 100644 --- a/dlls/lz32/tests/lzexpand_main.c +++ b/dlls/lz32/tests/lzexpand_main.c @@ -62,10 +62,11 @@ static void test_LZOpenFileA(void) INT file; char expected[MAX_PATH]; char filled_0xA5[OFS_MAXPATHNAME]; + static char badfilename_[] = "badfilename_"; SetLastError(0xfaceabee); /* Check for nonexistent file. */ - file = LZOpenFileA("badfilename_", &test, OF_READ); + file = LZOpenFileA(badfilename_, &test, OF_READ); ok(file == LZERROR_BADINHANDLE, "LZOpenFileA succeeded on nonexistent file\n"); ok(GetLastError() == ERROR_FILE_NOT_FOUND,