https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4f0f5f6ff81afe02d69ca4c4febb1fe94bb28ea2

commit 4f0f5f6ff81afe02d69ca4c4febb1fe94bb28ea2
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sat Dec 3 12:42:04 2022 +0200
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Tue Dec 13 07:18:24 2022 +0100

    [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));

Reply via email to