From a208c2340f3a2d6588c4ed5656c699dcb47d03d7 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 22 Jul 2009 11:15:34 +0000 Subject: [PATCH] - Add missing braces to prevent PVOID pointer arithmetic. svn path=/trunk/; revision=42138 --- reactos/ntoskrnl/mm/procsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/procsup.c b/reactos/ntoskrnl/mm/procsup.c index 3a68aa0e9ad..4d367f6fac1 100644 --- a/reactos/ntoskrnl/mm/procsup.c +++ b/reactos/ntoskrnl/mm/procsup.c @@ -222,7 +222,7 @@ MmCreatePeb(PEPROCESS Process) Peb->HeapDeCommitFreeBlockThreshold = MmHeapDeCommitFreeBlockThreshold;*/ Peb->NumberOfHeaps = 0; Peb->MaximumNumberOfHeaps = (PAGE_SIZE - sizeof(PEB)) / sizeof(PVOID); - Peb->ProcessHeaps = (PVOID*)Peb + 1; + Peb->ProcessHeaps = (PVOID*)(Peb + 1); /* Image Data */ if ((NtHeaders = RtlImageNtHeader(Peb->ImageBaseAddress)))