[PATCH 4/5] lz32/tests: WinME sometimes returns short filenames.

Dmitry Timoshkov dmitry at codeweavers.com
Thu Oct 5 21:41:51 CDT 2006


"Saulius Krasuckas" <saulius.krasuckas at 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.



More information about the wine-devel mailing list