Commit 6baacf61 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Fix broken graphics path constructor.

parent 1a2e16de
...@@ -38,14 +38,13 @@ GpStatus WINGDIPAPI GdipCreatePath(GpFillMode fill, GpPath **path) ...@@ -38,14 +38,13 @@ GpStatus WINGDIPAPI GdipCreatePath(GpFillMode fill, GpPath **path)
if(!path) if(!path)
return InvalidParameter; return InvalidParameter;
*path = GdipAlloc(sizeof(GpSolidFill)); *path = GdipAlloc(sizeof(GpPath));
if(!*path) return OutOfMemory; if(!*path) return OutOfMemory;
hdc = GetDC(0);
(*path)->fill = fill; (*path)->fill = fill;
(*path)->newfigure = TRUE; (*path)->newfigure = TRUE;
hdc = GetDC(0);
ret = GdipCreateFromHDC(hdc, &((*path)->graphics)); ret = GdipCreateFromHDC(hdc, &((*path)->graphics));
if(ret != Ok){ if(ret != Ok){
......
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