gdiplus: GdipTransformRegion should not fail for an empty path.

This commit is contained in:
Dmitry Timoshkov 2013-09-24 11:25:57 +09:00 committed by Alexandre Julliard
parent 3870e5b255
commit ec9a0d8570
2 changed files with 3 additions and 1 deletions

View file

@ -1310,6 +1310,9 @@ static GpStatus transform_region_element(region_element* element, GpMatrix *matr
}
/* Fall-through to do the actual conversion. */
case RegionDataPath:
if (!element->elementdata.pathdata.path->pathdata.Count)
return Ok;
stat = GdipTransformMatrixPoints(matrix,
element->elementdata.pathdata.path->pathdata.Points,
element->elementdata.pathdata.path->pathdata.Count);

View file

@ -381,7 +381,6 @@ static void test_getregiondata(void)
status = GdipCreateMatrix(&matrix);
expect(Ok, status);
status = GdipTransformRegion(region, matrix);
todo_wine
expect(Ok, status);
GdipDeleteMatrix(matrix);