Author: mbosma
Date: Thu Jun 15 17:16:29 2006
New Revision: 22361
URL:
http://svn.reactos.ru/svn/reactos?rev=22361&view=rev
Log:
Fix sweeping the handle table on process shutdown. Patch by w3seek.
Modified:
trunk/reactos/ntoskrnl/ob/obhandle.c
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obhandle.c (original)
+++ trunk/reactos/ntoskrnl/ob/obhandle.c Thu Jun 15 17:16:29 2006
@@ -1009,7 +1009,6 @@
IN HANDLE Handle,
IN PVOID Context)
{
-#if 0
POBP_CLOSE_HANDLE_CONTEXT CloseContext = (POBP_CLOSE_HANDLE_CONTEXT)Context;
/* Simply decrement the handle count */
@@ -1018,7 +1017,6 @@
Handle,
CloseContext->AccessMode,
TRUE);
-#endif
}
/*++
@@ -1163,7 +1161,7 @@
/* Sweep the handle table to close all handles */
ExSweepHandleTable(HandleTable,
ObpCloseHandleCallback,
- Process);
+ &Context);
/* Destroy the table and leave the critical region */
ExDestroyHandleTable(HandleTable);