Fix relaunch_self on w11
This commit is contained in:
parent
08c8d17044
commit
2f7d03437a
@ -275,8 +275,8 @@ namespace utils::nt
|
||||
}
|
||||
}
|
||||
|
||||
CreateProcessA(self.get_path().generic_string().data(), command_line.data(), nullptr, nullptr, false, NULL, nullptr, current_dir,
|
||||
&startup_info, &process_info);
|
||||
CreateProcessA(self.get_path().generic_string().data(), command_line.data(), nullptr, nullptr, false,
|
||||
CREATE_NEW_CONSOLE, nullptr, current_dir, &startup_info, &process_info);
|
||||
|
||||
if (process_info.hThread && process_info.hThread != INVALID_HANDLE_VALUE) CloseHandle(process_info.hThread);
|
||||
if (process_info.hProcess && process_info.hProcess != INVALID_HANDLE_VALUE) CloseHandle(process_info.hProcess);
|
||||
|
Loading…
Reference in New Issue
Block a user