summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-27 03:38:15 -0400
committermidipix <writeonce@midipix.org>2016-07-27 10:01:10 -0400
commit875bdceedecf515ed18679d3e325847daaedf852 (patch)
tree805c78c3961dbb4c696364ef9dc6cc1d8365c29f
parent22238c52f19167008af978a5a4acf2dffef3ba94 (diff)
downloadntapi-875bdceedecf515ed18679d3e325847daaedf852.tar.bz2
ntapi-875bdceedecf515ed18679d3e325847daaedf852.tar.xz
__ntapi_tt_spawn_native_process(): always use sparams->hsession.
-rw-r--r--src/process/ntapi_tt_spawn_native_process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/process/ntapi_tt_spawn_native_process.c b/src/process/ntapi_tt_spawn_native_process.c
index f072426..ebc2c06 100644
--- a/src/process/ntapi_tt_spawn_native_process.c
+++ b/src/process/ntapi_tt_spawn_native_process.c
@@ -257,7 +257,9 @@ int32_t __stdcall __ntapi_tt_spawn_native_process(nt_spawn_process_params * spar
session.sid = rtctx->alt_cid_self.sid;
session.syspid = cparams.pbi.unique_process_id;
- if ((status = __ntapi->tty_client_session_set(0,&session)))
+ if ((status = __ntapi->tty_client_session_set(
+ sparams->hsession,
+ &session)))
return __tt_spawn_return(
&rtblock,
cparams.hprocess,