From d53444e50b8c99331c4679c37eeba96599f6c98a Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 7 Mar 2011 06:24:38 +0000 Subject: [PATCH] [Win32k] - Fix a crash in WidenPath, tested with Area.exe. svn path=/trunk/; revision=50986 --- reactos/subsystems/win32/win32k/objects/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/path.c b/reactos/subsystems/win32/win32k/objects/path.c index 1ff5f429a52..0b1a7aa512c 100644 --- a/reactos/subsystems/win32/win32k/objects/path.c +++ b/reactos/subsystems/win32/win32k/objects/path.c @@ -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)))