[WIN32K] Fix a bug in PATH_PathToRegion

This commit is contained in:
Timo Kreuzer 2022-12-03 12:42:04 +02:00
parent 84b09285c8
commit 4f0f5f6ff8

View file

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