Commit 8f7749aa authored by Jeff Smith's avatar Jeff Smith Committed by Alexandre Julliard

gdiplus: Fix a GdipSetPageScale return status.

parent 142dc48a
......@@ -6164,12 +6164,15 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics *graphics, REAL scale)
TRACE("(%p, %.2f)\n", graphics, scale);
if(!graphics || (scale <= 0.0))
if(!graphics)
return InvalidParameter;
if(graphics->busy)
return ObjectBusy;
if(scale <= 0.0)
return InvalidParameter;
if (is_metafile_graphics(graphics))
{
stat = METAFILE_SetPageTransform((GpMetafile*)graphics->image, graphics->unit, scale);
......
......@@ -1847,7 +1847,6 @@ static void test_Get_Release_DC(void)
status = GdipSetPageScale(graphics, 1.0);
expect(ObjectBusy, status);
status = GdipSetPageScale(graphics, 0.0);
todo_wine
expect(ObjectBusy, status);
status = GdipSetPageUnit(graphics, UnitWorld);
expect(ObjectBusy, status);
......
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