user32/tests: Fix some test failures on Win9x.

This commit is contained in:
Paul Vriens 2008-11-07 08:32:21 +01:00 committed by Alexandre Julliard
parent 9368972866
commit b8d468637e
1 changed files with 6 additions and 3 deletions

View File

@ -737,7 +737,8 @@ static void test_LoadImageFile(const unsigned char * image_data,
ok(handle == NULL, "LoadImage(%s) as IMAGE_CURSOR succeeded incorrectly.\n", ext);
error = GetLastError();
ok(error == 0 ||
broken(error == ERROR_BAD_PATHNAME), /* Win9x, WinMe */
broken(error == 0xdeadbeef) || /* Win9x */
broken(error == ERROR_BAD_PATHNAME), /* Win98, WinMe */
"Last error: %u\n", error);
if (handle != NULL) DestroyCursor(handle);
@ -747,7 +748,8 @@ static void test_LoadImageFile(const unsigned char * image_data,
ok(handle == NULL, "LoadImage(%s) as IMAGE_ICON succeeded incorrectly.\n", ext);
error = GetLastError();
ok(error == 0 ||
broken(error == ERROR_BAD_PATHNAME), /* Win9x, WinMe */
broken(error == 0xdeadbeef) || /* Win9x */
broken(error == ERROR_BAD_PATHNAME), /* Win98, WinMe */
"Last error: %u\n", error);
if (handle != NULL) DestroyIcon(handle);
@ -822,7 +824,8 @@ static void test_LoadImage(void)
ok(handle != NULL, "LoadImage() failed.\n");
error = GetLastError();
ok(error == 0 ||
broken(error == ERROR_BAD_PATHNAME), /* Win9x, WinMe */
broken(error == 0xdeadbeef) || /* Win9x */
broken(error == ERROR_BAD_PATHNAME), /* Win98, WinMe */
"Last error: %u\n", error);
/* Test the icon information. */