summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-30 08:29:50 -0400
committermidipix <writeonce@midipix.org>2016-07-30 13:41:43 -0400
commitec380f2cc9e90ae747d6102a04d1af598f23ca1c (patch)
tree4e381ab6d83ef999f929a998386b44632adeb68a /src/process
parent8d87a04ec0ac1e0e3fe98be4c2513b6c48453b49 (diff)
downloadntapi-ec380f2cc9e90ae747d6102a04d1af598f23ca1c.tar.bz2
ntapi-ec380f2cc9e90ae747d6102a04d1af598f23ca1c.tar.xz
__ntapi_tt_create_native_process_v2(): close resulting informational handles.
Diffstat (limited to 'src/process')
-rw-r--r--src/process/ntapi_tt_create_native_process_v2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process/ntapi_tt_create_native_process_v2.c b/src/process/ntapi_tt_create_native_process_v2.c
index e0bd71b..2d058a0 100644
--- a/src/process/ntapi_tt_create_native_process_v2.c
+++ b/src/process/ntapi_tt_create_native_process_v2.c
@@ -211,6 +211,10 @@ int32_t __stdcall __ntapi_tt_create_native_process_v2(
params->create_process_ext_params)))
return status;
+ /* tidy up */
+ __ntapi->zw_close(params->create_process_info->success_state.hfile);
+ __ntapi->zw_close(params->create_process_info->success_state.hsection);
+
if ((status = __ntapi->zw_query_information_process(
params->hprocess,
NT_PROCESS_BASIC_INFORMATION,