Re: [PATCH 4/5] lz32/tests: WinME sometimes returns short filenames.
"Saulius Krasuckas" <saulius.krasuckas(a)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", + test.szPathName, expected, short_expected); LZClose(file);
short_expected is used without being initialized. -- Dmitry.
participants (1)
-
Dmitry Timoshkov