diff options
author | midipix <writeonce@midipix.org> | 2024-09-03 01:17:57 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-09-03 01:17:57 +0000 |
commit | 98be5bede8ee8f70e53593d0fc8c2f53492a5fa9 (patch) | |
tree | 9c1225682e442f0a7d00ebbf6510a7bf41723018 /src | |
parent | ec1073730c90d3fddb90a61995d9dad465588240 (diff) | |
download | ntapi-98be5bede8ee8f70e53593d0fc8c2f53492a5fa9.tar.bz2 ntapi-98be5bede8ee8f70e53593d0fc8c2f53492a5fa9.tar.xz |
Diffstat (limited to 'src')
-rw-r--r-- | src/debug/ntapi_tt_debug_execution_flow.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/debug/ntapi_tt_debug_execution_flow.c b/src/debug/ntapi_tt_debug_execution_flow.c index 9c74df2..c4057a3 100644 --- a/src/debug/ntapi_tt_debug_execution_flow.c +++ b/src/debug/ntapi_tt_debug_execution_flow.c @@ -92,6 +92,25 @@ int32_t __stdcall __ntapi_tt_debug_execution_flow( break; } + switch (dbgstate.state) { + case NT_DBG_STATE_CREATE_THREAD: + __ntapi->zw_close(dbgstate._u.thread_info.hthread); + break; + + case NT_DBG_STATE_CREATE_PROCESS: + __ntapi->zw_close(dbgstate._u.process_info.hprocess); + __ntapi->zw_close(dbgstate._u.process_info.hthread); + __ntapi->zw_close(dbgstate._u.process_info.image_handle); + break; + + case NT_DBG_STATE_DLL_LOAD: + __ntapi->zw_close(dbgstate._u.load_module.image_handle); + break; + + default: + break; + } + __ntapi->zw_debug_continue( hdbgobj, &dbgstate.cid, |