* net.cc: Undefine NOERROR and DELETE to avoid compiler warnings.
* shared_info.h (CURR_SHARED_MAGIC): Update. * spawn.cc (spawn_guts): Avoid copying one line command line argument if it hasn't been filled out.
This commit is contained in:
@ -417,7 +417,10 @@ spawn_guts (const char *prog_arg, const char *const *argv,
|
||||
VerifyHandle (moreinfo->myself_pinfo);
|
||||
}
|
||||
WCHAR wone_line[one_line.ix + 1];
|
||||
sys_mbstowcs (wone_line, one_line.ix + 1, one_line.buf);
|
||||
if (one_line.ix)
|
||||
sys_mbstowcs (wone_line, one_line.ix + 1, one_line.buf);
|
||||
else
|
||||
wone_line[0] = L'\0';
|
||||
|
||||
PROCESS_INFORMATION pi;
|
||||
pi.hProcess = pi.hThread = NULL;
|
||||
|
Reference in New Issue
Block a user