gdiplus: Fix parameter order in expect() calls.
This commit is contained in:
parent
527cae47e3
commit
9de1d86132
|
@ -432,14 +432,14 @@ static void test_SavingImages(void)
|
||||||
if (stat != Ok) goto cleanup;
|
if (stat != Ok) goto cleanup;
|
||||||
|
|
||||||
stat = GdipSaveImageToFile((GpImage*)bm, filename, &codecs[0].Clsid, 0);
|
stat = GdipSaveImageToFile((GpImage*)bm, filename, &codecs[0].Clsid, 0);
|
||||||
expect(stat, Ok);
|
expect(Ok, stat);
|
||||||
|
|
||||||
GdipDisposeImage((GpImage*)bm);
|
GdipDisposeImage((GpImage*)bm);
|
||||||
bm = 0;
|
bm = 0;
|
||||||
|
|
||||||
/* re-load and check image stats */
|
/* re-load and check image stats */
|
||||||
stat = GdipLoadImageFromFile(filename, (GpImage**)&bm);
|
stat = GdipLoadImageFromFile(filename, (GpImage**)&bm);
|
||||||
expect(stat, Ok);
|
expect(Ok, stat);
|
||||||
if (stat != Ok) goto cleanup;
|
if (stat != Ok) goto cleanup;
|
||||||
|
|
||||||
stat = GdipGetImageDimension((GpImage*)bm, &w, &h);
|
stat = GdipGetImageDimension((GpImage*)bm, &w, &h);
|
||||||
|
|
Loading…
Reference in New Issue