From 70bb5d0a00639c866c00f1e1863abdd3703a4497 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 17 Dec 2011 08:30:48 +0000 Subject: [PATCH] [RTL] - Pass size 0 when calling NtFreeVirtualMemory for MEM_RELEASE svn path=/trunk/; revision=54668 --- reactos/lib/rtl/handle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/lib/rtl/handle.c b/reactos/lib/rtl/handle.c index 241a8c3b064..f9170863668 100644 --- a/reactos/lib/rtl/handle.c +++ b/reactos/lib/rtl/handle.c @@ -35,13 +35,12 @@ VOID NTAPI RtlDestroyHandleTable(PRTL_HANDLE_TABLE HandleTable) { PVOID ArrayPointer; - SIZE_T ArraySize; + SIZE_T ArraySize = 0; /* free handle array */ if (HandleTable->CommittedHandles) { ArrayPointer = (PVOID)HandleTable->CommittedHandles; - ArraySize = HandleTable->SizeOfHandleTableEntry * HandleTable->MaximumNumberOfHandles; NtFreeVirtualMemory(NtCurrentProcess(), &ArrayPointer, &ArraySize,