mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:31:38 +00:00
- Don't hardcode PAGE_SIZE two times, use ViewSize value, which is the actual size of committed pages.
svn path=/trunk/; revision=36257
This commit is contained in:
parent
43aead0a4e
commit
b07e36592f
1 changed files with 2 additions and 2 deletions
|
@ -146,14 +146,14 @@ IntUserHeapCreate(IN PSECTION_OBJECT SectionObject,
|
|||
/* Create the heap, don't serialize in kmode! The caller is responsible
|
||||
to synchronize the heap! */
|
||||
Parameters.Length = sizeof(Parameters);
|
||||
Parameters.InitialCommit = PAGE_SIZE;
|
||||
Parameters.InitialCommit = ViewSize;
|
||||
Parameters.InitialReserve = (SIZE_T)HeapSize;
|
||||
Parameters.CommitRoutine = IntUserHeapCommitRoutine;
|
||||
|
||||
hHeap = RtlCreateHeap(HEAP_ZERO_MEMORY | HEAP_NO_SERIALIZE,
|
||||
*SystemMappedBase,
|
||||
(SIZE_T)HeapSize,
|
||||
PAGE_SIZE,
|
||||
ViewSize,
|
||||
NULL,
|
||||
&Parameters);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue