[GDIPLUS_WINETEST]

CORE-6969 Adding a check to skip a test after failure instead of continuing with uninitialized memory. "Fixes" a crash when compiled with GCC 4.7.2

svn path=/trunk/; revision=58377
This commit is contained in:
Timo Kreuzer 2013-02-28 09:38:08 +00:00
parent 3a2e6d102f
commit 2bab12f092

View file

@ -1473,6 +1473,7 @@ static void test_createfromwmf(void)
stat = GdipCreateMetafileFromWmf(hwmf, TRUE,
(WmfPlaceableFileHeader*)wmfimage, (GpMetafile**)&img);
expect(Ok, stat);
if (stat != Ok) return; // ReactOS
stat = GdipGetImageBounds(img, &bounds, &unit);
expect(Ok, stat);