mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Add missing braces to prevent PVOID pointer arithmetic.
svn path=/trunk/; revision=42138
This commit is contained in:
parent
95688079e3
commit
a208c2340f
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue