"Saulius Krasuckas" saulius.krasuckas@ieee.org wrote:
--- a/dlls/lz32/tests/lzexpand_main.c +++ b/dlls/lz32/tests/lzexpand_main.c @@ -356,6 +356,7 @@ static void test_LZOpenFileA(void) INT file; static char badfilename_[] = "badfilename_"; char expected[MAX_PATH];
char short_expected[MAX_PATH];
SetLastError(0xfaceabee); /* Check for nonexistent file. */
@@ -401,9 +402,10 @@ static void test_LZOpenFileA(void) "LZOpenFileA set test.cBytes to %d\n", test.cBytes); ok(test.nErrCode == ERROR_SUCCESS, "LZOpenFileA set test.nErrCode to %d\n", test.nErrCode);
- ok(lstrcmpA(test.szPathName, expected) == 0,
"LZOpenFileA returned '%s', but was expected to return '%s'\n",
test.szPathName, expected);
- ok(lstrcmpA(test.szPathName, expected) == 0 ||
lstrcmpA(test.szPathName, short_expected) == 0, /* Win9x */
"LZOpenFileA returned '%s', but was expected to return '%s' or '%s'\n",
LZClose(file);test.szPathName, expected, short_expected);
short_expected is used without being initialized.