diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h index 699bcb5..208657b 100644 --- a/include/ntapi/nt_process.h +++ b/include/ntapi/nt_process.h @@ -222,9 +222,9 @@ typedef enum _nt_process_opcode_idx { #define NT_CREATE_PROCESS_EXT_CONSOLE_FLAG_INHERIT_STDERR (0x10) /* tt_spawn_native_process / tt_spawn_foreign_process flags */ -#define NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_SYSTEM_LIBRARY (0x00000001) -#define NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_PTY_SERVER (0x00000002) -#define NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_BRIDGE_PROCESS (0x00000004) +#define NT_PROCESS_SPAWN_FLAG_DELEGATE_TO_SYSTEM_LIBRARY (0x00000001) +#define NT_PROCESS_SPAWN_FLAG_DELEGATE_TO_PTY_SERVER (0x00000002) +#define NT_PROCESS_SPAWN_FLAG_DELEGATE_TO_BRIDGE_PROCESS (0x00000004) /* nt_runtime_data_block flag bits */ #define NT_RUNTIME_DATA_DUPLICATE_SESSION_HANDLES (0x01) diff --git a/src/process/ntapi_tt_spawn_foreign_process.c b/src/process/ntapi_tt_spawn_foreign_process.c index 105b59b..34b8763 100644 --- a/src/process/ntapi_tt_spawn_foreign_process.c +++ b/src/process/ntapi_tt_spawn_foreign_process.c @@ -327,7 +327,7 @@ int32_t __stdcall __ntapi_tt_spawn_foreign_process(nt_spawn_process_params * spa fsuspended = 0; /* hoppla: try either via kernel32 (sparams->startupinfo), or natively */ - if (sparams->spawnflags & NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_SYSTEM_LIBRARY) { + if (sparams->spawnflags & NT_PROCESS_SPAWN_FLAG_DELEGATE_TO_SYSTEM_LIBRARY) { processinfo.hprocess = 0; processinfo.hthread = 0; processinfo.process_id = 0;