diff options
author | midipix <writeonce@midipix.org> | 2016-07-30 08:29:50 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-30 13:41:43 -0400 |
commit | ec380f2cc9e90ae747d6102a04d1af598f23ca1c (patch) | |
tree | 4e381ab6d83ef999f929a998386b44632adeb68a /src/process | |
parent | 8d87a04ec0ac1e0e3fe98be4c2513b6c48453b49 (diff) | |
download | ntapi-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.c | 4 |
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, |