- 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:
Aleksey Bragin 2008-09-15 13:09:30 +00:00
parent 43aead0a4e
commit b07e36592f

View file

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