[Win32k]
authorJames Tabor <james.tabor@reactos.org>
Mon, 7 Mar 2011 06:24:38 +0000 (06:24 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 7 Mar 2011 06:24:38 +0000 (06:24 +0000)
- Fix a crash in WidenPath, tested with Area.exe.

svn path=/trunk/; revision=50986

reactos/subsystems/win32/win32k/objects/path.c

index 1ff5f42..0b1a7aa 100644 (file)
@@ -1858,7 +1858,7 @@ PATH_WidenPath(DC *dc)
         PATH_DestroyGdiPath(pDownPath);
         ExFreePoolWithTag(pDownPath, TAG_PATH);
     }
-    ExFreePoolWithTag(pStrokes, TAG_PATH);
+    if (pStrokes) ExFreePoolWithTag(pStrokes, TAG_PATH);
 
     pNewPath->state = PATH_Closed;
     if (!(ret = PATH_AssignGdiPath(pPath, pNewPath)))