mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
Fix sweeping the handle table on process shutdown. Patch by w3seek.
svn path=/trunk/; revision=22361
This commit is contained in:
parent
bedfaa39ea
commit
4337de626c
1 changed files with 1 additions and 3 deletions
|
@ -1009,7 +1009,6 @@ ObpCloseHandleCallback(IN PHANDLE_TABLE_ENTRY HandleTableEntry,
|
|||
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 @@ ObpCloseHandleCallback(IN PHANDLE_TABLE_ENTRY HandleTableEntry,
|
|||
Handle,
|
||||
CloseContext->AccessMode,
|
||||
TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*++
|
||||
|
@ -1163,7 +1161,7 @@ ObKillProcess(IN PEPROCESS Process)
|
|||
/* Sweep the handle table to close all handles */
|
||||
ExSweepHandleTable(HandleTable,
|
||||
ObpCloseHandleCallback,
|
||||
Process);
|
||||
&Context);
|
||||
|
||||
/* Destroy the table and leave the critical region */
|
||||
ExDestroyHandleTable(HandleTable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue