From 4f0f5f6ff81afe02d69ca4c4febb1fe94bb28ea2 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 3 Dec 2022 12:42:04 +0200 Subject: [PATCH] [WIN32K] Fix a bug in PATH_PathToRegion --- win32ss/gdi/ntgdi/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/gdi/ntgdi/path.c b/win32ss/gdi/ntgdi/path.c index 6962e5497b1..08ca767473d 100644 --- a/win32ss/gdi/ntgdi/path.c +++ b/win32ss/gdi/ntgdi/path.c @@ -1459,7 +1459,7 @@ PATH_PathToRegion( if (!pPath->numEntriesUsed) return FALSE; - counts = ExAllocatePoolWithTag(PagedPool, (pPath->numEntriesUsed / 2) * sizeof(counts), TAG_PATH); + counts = ExAllocatePoolWithTag(PagedPool, (pPath->numEntriesUsed / 2) * sizeof(*counts), TAG_PATH); if (!counts) { ERR("Failed to allocate %lu strokes\n", (pPath->numEntriesUsed / 2) * sizeof(*counts));