gdi32/tests: Fix two test failures on Win9x.

This commit is contained in:
Paul Vriens 2009-03-12 15:08:13 +01:00 committed by Alexandre Julliard
parent 78402cfa7a
commit dde935f0bf
1 changed files with 6 additions and 2 deletions

View File

@ -1223,7 +1223,9 @@ static void test_SetMetaFileBits(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
hmf = SetMetaFileBitsEx(0, MF_GRAPHICS_BITS); hmf = SetMetaFileBitsEx(0, MF_GRAPHICS_BITS);
ok(!hmf, "SetMetaFileBitsEx should fail\n"); ok(!hmf, "SetMetaFileBitsEx should fail\n");
ok(GetLastError() == ERROR_INVALID_DATA, "wrong error %d\n", GetLastError()); ok(GetLastError() == ERROR_INVALID_DATA ||
broken(GetLastError() == ERROR_INVALID_PARAMETER), /* Win9x */
"wrong error %d\n", GetLastError());
/* Now with not even size */ /* Now with not even size */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
@ -1242,7 +1244,9 @@ static void test_SetMetaFileBits(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
hmf = SetMetaFileBitsEx(sizeof(MF_GRAPHICS_BITS), buf); hmf = SetMetaFileBitsEx(sizeof(MF_GRAPHICS_BITS), buf);
ok(!hmf, "SetMetaFileBitsEx should fail\n"); ok(!hmf, "SetMetaFileBitsEx should fail\n");
ok(GetLastError() == ERROR_INVALID_DATA, "wrong error %d\n", GetLastError()); ok(GetLastError() == ERROR_INVALID_DATA ||
broken(GetLastError() == ERROR_INVALID_PARAMETER), /* Win9x */
"wrong error %d\n", GetLastError());
/* Now with corrupted mtSize field */ /* Now with corrupted mtSize field */
memcpy(buf, MF_GRAPHICS_BITS, sizeof(MF_GRAPHICS_BITS)); memcpy(buf, MF_GRAPHICS_BITS, sizeof(MF_GRAPHICS_BITS));