From 27e451c99f09d942d8cc7176f9f65bae47b420af Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 1 Sep 2016 06:53:28 +0000 Subject: [PATCH 1/1] [NtGDI] - Allocate initial entries for paths. svn path=/trunk/; revision=72529 --- reactos/win32ss/gdi/ntgdi/path.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/win32ss/gdi/ntgdi/path.c b/reactos/win32ss/gdi/ntgdi/path.c index a1cb865bbea..324cbe00a14 100644 --- a/reactos/win32ss/gdi/ntgdi/path.c +++ b/reactos/win32ss/gdi/ntgdi/path.c @@ -2417,6 +2417,11 @@ NtGdiBeginPath(HDC hDC) /* 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; -- 2.17.1