Absent _UNICODE being defined (which gdb's Makefile doesn't do),
windows.h will always define STARTUPINFO is as STARTUPINFOA, so this
cast isn't correct when create_process expects a STARTUPINFOW
parameter (i.e. in a Cygwin build).
Instead write this as &info_ex.StartupInfo (which is always of the
correct type).
| EXTENDED_STARTUPINFO_PRESENT),
environment,
cur_dir,
- (STARTUPINFO *) &info_ex,
+ &info_ex.StartupInfo,
process_info);
if (result)
return_value = result;