Author: fireball
Date: Wed Jul 22 13:15:34 2009
New Revision: 42138
URL:
http://svn.reactos.org/svn/reactos?rev=42138&view=rev
Log:
- Add missing braces to prevent PVOID pointer arithmetic.
Modified:
trunk/reactos/ntoskrnl/mm/procsup.c
Modified: trunk/reactos/ntoskrnl/mm/procsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/procsup.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/procsup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/procsup.c [iso-8859-1] Wed Jul 22 13:15:34 2009
@@ -222,7 +222,7 @@
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)))