gdiplus: fix broken graphics path constructor

Evan Stade estade at gmail.com
Fri Jun 22 21:20:44 CDT 2007


Hi,

Changelog:
*fix a bad typo, also group code more neatly

 dlls/gdiplus/graphicspath.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 13a14cf..cce60c6 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -38,14 +38,13 @@ GpStatus WINGDIPAPI GdipCreatePath(GpFil
     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){
-- 
1.4.1


More information about the wine-patches mailing list