mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user