* 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:
Christopher Faylor
2009-04-05 04:23:50 +00:00
parent 80317fe50f
commit 66eaf280ac
4 changed files with 18 additions and 2 deletions

View File

@ -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;