projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented sweeping of handle tables
[reactos.git]
/
reactos
/
ntoskrnl
/
ob
/
handle.c
diff --git
a/reactos/ntoskrnl/ob/handle.c
b/reactos/ntoskrnl/ob/handle.c
index
6176766
..
153ff10
100644
(file)
--- a/
reactos/ntoskrnl/ob/handle.c
+++ b/
reactos/ntoskrnl/ob/handle.c
@@
-504,10
+504,10
@@
NtDuplicateObject (IN HANDLE SourceProcessHandle,
}
static VOID STDCALL
}
static VOID STDCALL
-
Delete
HandleCallback(PHANDLE_TABLE HandleTable,
-
PVOID Object,
-
ULONG GrantedAccess,
-
PVOID Context)
+
Sweep
HandleCallback(PHANDLE_TABLE HandleTable,
+ PVOID Object,
+ ULONG GrantedAccess,
+ PVOID Context)
{
POBJECT_HEADER ObjectHeader;
PVOID ObjectBody;
{
POBJECT_HEADER ObjectHeader;
PVOID ObjectBody;
@@
-580,9
+580,12
@@
ObKillProcess(PEPROCESS Process)
{
PAGED_CODE();
{
PAGED_CODE();
- ExDestroyHandleTable(Process->ObjectTable,
- DeleteHandleCallback,
- Process);
+ /* FIXME - Temporary hack: sweep and destroy here, needs to be fixed!!! */
+ ExSweepHandleTable(Process->ObjectTable,
+ SweepHandleCallback,
+ Process);
+ ExDestroyHandleTable(Process->ObjectTable);
+ Process->ObjectTable = NULL;
}
}