From 3c26f0e5086e7f00eb4318e3874fefc17b2431b9 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 11 Jan 2018 16:50:29 -0500 Subject: __ntapi_tt_spawn_native_process(): use sparams->hroot as needed. --- src/process/ntapi_tt_spawn_native_process.c | 4 ++-- 1 file 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; -- cgit v1.2.3