gdiplus: Fix broken graphics path constructor.

This commit is contained in:
Evan Stade 2007-06-22 19:20:44 -07:00 committed by Alexandre Julliard
parent 1a2e16de0f
commit 6baacf61a8
1 changed files with 2 additions and 3 deletions

View File

@ -38,14 +38,13 @@ GpStatus WINGDIPAPI GdipCreatePath(GpFillMode fill, GpPath **path)
if(!path)
return InvalidParameter;
*path = GdipAlloc(sizeof(GpSolidFill));
*path = GdipAlloc(sizeof(GpPath));
if(!*path) return OutOfMemory;
hdc = GetDC(0);
(*path)->fill = fill;
(*path)->newfigure = TRUE;
hdc = GetDC(0);
ret = GdipCreateFromHDC(hdc, &((*path)->graphics));
if(ret != Ok){