From 6baacf61a857a7f9c471005cb12553f8d37a558e Mon Sep 17 00:00:00 2001 From: Evan Stade Date: Fri, 22 Jun 2007 19:20:44 -0700 Subject: [PATCH] gdiplus: Fix broken graphics path constructor. --- dlls/gdiplus/graphicspath.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 13a14cfab91..cce60c6a885 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -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){