- Add missing braces to prevent PVOID pointer arithmetic.

svn path=/trunk/; revision=42138
This commit is contained in:
Aleksey Bragin 2009-07-22 11:15:34 +00:00
parent 95688079e3
commit a208c2340f

View file

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