Author: cgutman
Date: Sat Dec 17 08:30:48 2011
New Revision: 54668

URL: http://svn.reactos.org/svn/reactos?rev=54668&view=rev
Log:
[RTL]
- Pass size 0 when calling NtFreeVirtualMemory for MEM_RELEASE

Modified:
    trunk/reactos/lib/rtl/handle.c

Modified: trunk/reactos/lib/rtl/handle.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/handle.c?rev=54668&r1=54667&r2=54668&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/handle.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/handle.c [iso-8859-1] Sat Dec 17 08:30:48 2011
@@ -35,13 +35,12 @@
 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,


Reply via email to