[ros-diffs] [jimtabor] 50986: [Win32k] - Fix a crash in WidenPath, tested with Area.exe.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Mon Mar 7 06:24:40 UTC 2011


Author: jimtabor
Date: Mon Mar  7 06:24:38 2011
New Revision: 50986

URL: http://svn.reactos.org/svn/reactos?rev=50986&view=rev
Log:
[Win32k]
- Fix a crash in WidenPath, tested with Area.exe.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/path.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/path.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/path.c?rev=50986&r1=50985&r2=50986&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] Mon Mar  7 06:24:38 2011
@@ -1858,7 +1858,7 @@
         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)))




More information about the Ros-diffs mailing list