summaryrefslogtreecommitdiffhomepage
path: root/src/process/ntapi_tt_create_native_process_v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process/ntapi_tt_create_native_process_v1.c')
-rw-r--r--src/process/ntapi_tt_create_native_process_v1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process/ntapi_tt_create_native_process_v1.c b/src/process/ntapi_tt_create_native_process_v1.c
index 57ca36f..12f0073 100644
--- a/src/process/ntapi_tt_create_native_process_v1.c
+++ b/src/process/ntapi_tt_create_native_process_v1.c
@@ -238,6 +238,12 @@ int32_t __stdcall __ntapi_tt_create_native_process_v1(nt_create_process_params *
return __tt_create_process_cancel(params,hsection,status);
/* rtdata */
+ if (params->rtblock) {
+ struct _nt_runtime_data * rtdata;
+ rtdata = (struct _nt_runtime_data *)params->rtblock->addr;
+ rtdata->flags &= ~NT_RUNTIME_DATA_ARGV_ENVP_RELOCATED;
+ }
+
if (params->rtblock && (status = __ntapi_tt_create_remote_runtime_data(tparams.hprocess,params->rtblock)))
return __tt_create_process_cancel(params,hsection,status);