Commit b8d46863 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

user32/tests: Fix some test failures on Win9x.

parent 93689728
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment