summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xconfigure3
-rw-r--r--src/debug/ntapi_tt_debug_execution_flow.c19
2 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 839d8b3..100786d 100755
--- a/configure
+++ b/configure
@@ -1111,6 +1111,9 @@ for arg ; do
--mandir=*)
mb_mandir=${arg#*=}
;;
+ --docdir=*)
+ mb_docdir=${arg#*=}
+ ;;
--libexecdir=*)
mb_libexecdir=${arg#*=}
;;
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,