Author: jimtabor Date: Thu Sep 1 06:53:28 2016 New Revision: 72529
URL: http://svn.reactos.org/svn/reactos?rev=72529&view=rev Log: [NtGDI] - Allocate initial entries for paths.
Modified: trunk/reactos/win32ss/gdi/ntgdi/path.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/path.c?re... ============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/path.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/path.c [iso-8859-1] Thu Sep 1 06:53:28 2016 @@ -2417,6 +2417,11 @@ /* Make sure that path is empty */ PATH_EmptyPath(pPath);
+ pPath->numEntriesAllocated = NUM_ENTRIES_INITIAL; + + pPath->pPoints = (POINT *)ExAllocatePoolWithTag(PagedPool, NUM_ENTRIES_INITIAL * sizeof(POINT), TAG_PATH); + pPath->pFlags = (BYTE *)ExAllocatePoolWithTag(PagedPool, NUM_ENTRIES_INITIAL * sizeof(BYTE), TAG_PATH); + /* Initialize variables for new path */ pPath->newStroke = TRUE; pPath->state = PATH_Open;