lz32/tests: Write-strings warning fix.

This commit is contained in:
Andrew Talbot 2006-08-02 18:19:51 +01:00 committed by Alexandre Julliard
parent a8bc5190eb
commit 369ac64afe
1 changed files with 2 additions and 1 deletions

View File

@ -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,