diff options
author | midipix <writeonce@midipix.org> | 2016-07-30 08:34:08 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-30 13:41:46 -0400 |
commit | 39c844f6632704be072ebce72b9b18cf1690eac4 (patch) | |
tree | dbdee2876229d7db3a6124eaa6c9982bf9418beb | |
parent | ec380f2cc9e90ae747d6102a04d1af598f23ca1c (diff) | |
download | ntapi-39c844f6632704be072ebce72b9b18cf1690eac4.tar.bz2 ntapi-39c844f6632704be072ebce72b9b18cf1690eac4.tar.xz |
__ntapi_tt_spawn_native_process(): close handle to hfile as needed.
-rw-r--r-- | src/process/ntapi_tt_spawn_native_process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process/ntapi_tt_spawn_native_process.c b/src/process/ntapi_tt_spawn_native_process.c index ebc2c06..db308d6 100644 --- a/src/process/ntapi_tt_spawn_native_process.c +++ b/src/process/ntapi_tt_spawn_native_process.c @@ -240,6 +240,10 @@ int32_t __stdcall __ntapi_tt_spawn_native_process(nt_spawn_process_params * spar return __tt_spawn_return( &rtblock,0,0,status); + /* tidy up */ + if (!sparams->himage) + __ntapi->zw_close(hfile); + /* tty session (optional) */ if (sparams->hsession) { if ((status = __ntapi->tty_client_process_register( |