mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:53:05 +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 HANDLE Handle,
|
||||||
IN PVOID Context)
|
IN PVOID Context)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
POBP_CLOSE_HANDLE_CONTEXT CloseContext = (POBP_CLOSE_HANDLE_CONTEXT)Context;
|
POBP_CLOSE_HANDLE_CONTEXT CloseContext = (POBP_CLOSE_HANDLE_CONTEXT)Context;
|
||||||
|
|
||||||
/* Simply decrement the handle count */
|
/* Simply decrement the handle count */
|
||||||
|
@ -1018,7 +1017,6 @@ ObpCloseHandleCallback(IN PHANDLE_TABLE_ENTRY HandleTableEntry,
|
||||||
Handle,
|
Handle,
|
||||||
CloseContext->AccessMode,
|
CloseContext->AccessMode,
|
||||||
TRUE);
|
TRUE);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*++
|
/*++
|
||||||
|
@ -1163,7 +1161,7 @@ ObKillProcess(IN PEPROCESS Process)
|
||||||
/* Sweep the handle table to close all handles */
|
/* Sweep the handle table to close all handles */
|
||||||
ExSweepHandleTable(HandleTable,
|
ExSweepHandleTable(HandleTable,
|
||||||
ObpCloseHandleCallback,
|
ObpCloseHandleCallback,
|
||||||
Process);
|
&Context);
|
||||||
|
|
||||||
/* Destroy the table and leave the critical region */
|
/* Destroy the table and leave the critical region */
|
||||||
ExDestroyHandleTable(HandleTable);
|
ExDestroyHandleTable(HandleTable);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue