Trivial fixes to Cygwin build after 8fea1a81

* Remove a stray semicolon
* Restore dropped nullptr program argument in use of create_process() under CYGWIN
This commit is contained in:
Jon Turney
2022-06-12 16:36:58 +01:00
parent 09d5a3fffc
commit 9dad432e10
2 changed files with 2 additions and 2 deletions

View File

@ -877,7 +877,7 @@ create_process (const wchar_t *image, wchar_t *command_line, DWORD flags,
void *environment, const wchar_t *cur_dir,
bool no_randomization,
STARTUPINFOW *startup_info,
PROCESS_INFORMATION *process_info);
PROCESS_INFORMATION *process_info)
{
return create_process_wrapper (CreateProcessW, image, command_line, flags,
environment, cur_dir, no_randomization,

View File

@ -2478,7 +2478,7 @@ windows_nat_target::create_inferior (const char *exec_file,
}
windows_init_thread_list ();
ret = create_process (args, flags, w32_env,
ret = create_process (nullptr, args, flags, w32_env,
inferior_cwd != nullptr ? infcwd : nullptr,
disable_randomization,
&si, &pi);