gdi32/tests: Add a broken case for some versions of winxp.
This commit is contained in:
parent
0788ac38ab
commit
1d66e20ead
|
@ -2357,7 +2357,9 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
|
||||||
ok(EqualRect((RECT*)&enh_header->rclFrame, rc), "Frame rectangles differ\n");
|
ok(EqualRect((RECT*)&enh_header->rclFrame, rc), "Frame rectangles differ\n");
|
||||||
|
|
||||||
size = GetWinMetaFileBits(emf, 0, NULL, mode, display_dc);
|
size = GetWinMetaFileBits(emf, 0, NULL, mode, display_dc);
|
||||||
ok(size, "GetWinMetaFileBits returns 0\n");
|
ok(size ||
|
||||||
|
broken(size == 0), /* some versions of winxp fail for some reason */
|
||||||
|
"GetWinMetaFileBits returns 0\n");
|
||||||
if(!size) goto end;
|
if(!size) goto end;
|
||||||
mh = HeapAlloc(GetProcessHeap(), 0, size);
|
mh = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
GetWinMetaFileBits(emf, size, (BYTE*)mh, mode, display_dc);
|
GetWinMetaFileBits(emf, size, (BYTE*)mh, mode, display_dc);
|
||||||
|
|
Loading…
Reference in New Issue