From b07e36592f940796bb8000feadd193c2b849cde5 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 15 Sep 2008 13:09:30 +0000 Subject: [PATCH] - Don't hardcode PAGE_SIZE two times, use ViewSize value, which is the actual size of committed pages. svn path=/trunk/; revision=36257 --- reactos/subsystems/win32/win32k/misc/usrheap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/misc/usrheap.c b/reactos/subsystems/win32/win32k/misc/usrheap.c index dfbc0a11892..739e1ea3cb3 100644 --- a/reactos/subsystems/win32/win32k/misc/usrheap.c +++ b/reactos/subsystems/win32/win32k/misc/usrheap.c @@ -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);