summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-01-11 16:50:29 -0500
committermidipix <writeonce@midipix.org>2018-01-11 16:50:29 -0500
commit3c26f0e5086e7f00eb4318e3874fefc17b2431b9 (patch)
tree44c4cd6517d5cc9bb8456117de90f427d4baeaed /src
parentb7e1804695193ce99778fe8d85035820d73a7a60 (diff)
downloadntapi-3c26f0e5086e7f00eb4318e3874fefc17b2431b9.tar.bz2
ntapi-3c26f0e5086e7f00eb4318e3874fefc17b2431b9.tar.xz
__ntapi_tt_spawn_native_process(): use sparams->hroot as needed.
Diffstat (limited to 'src')
-rw-r--r--src/process/ntapi_tt_spawn_native_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process/ntapi_tt_spawn_native_process.c b/src/process/ntapi_tt_spawn_native_process.c
index 580e645..be1dde0 100644
--- a/src/process/ntapi_tt_spawn_native_process.c
+++ b/src/process/ntapi_tt_spawn_native_process.c
@@ -90,8 +90,8 @@ int32_t __stdcall __ntapi_tt_spawn_native_process(nt_spawn_process_params * spar
return NT_STATUS_INTERNAL_ERROR;
/* hat */
- hat = (rtctx->hroot && (sparams->argv[0][0] == '/'))
- ? rtctx->hroot
+ hat = (sparams->hroot && (sparams->argv[0][0] == '/'))
+ ? sparams->hroot
: rtctx->hcwd
? rtctx->hcwd
: peb->process_params->cwd_handle;