Author: fireball Date: Mon Sep 15 08:09:30 2008 New Revision: 36257
URL: http://svn.reactos.org/svn/reactos?rev=36257&view=rev Log: - Don't hardcode PAGE_SIZE two times, use ViewSize value, which is the actual size of committed pages.
Modified: trunk/reactos/subsystems/win32/win32k/misc/usrheap.c
Modified: trunk/reactos/subsystems/win32/win32k/misc/usrheap.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/mis... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/misc/usrheap.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/misc/usrheap.c [iso-8859-1] Mon Sep 15 08:09:30 2008 @@ -146,14 +146,14 @@ /* 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);