* exceptions.cc (dump_exception): Use %W instead of %s for printing

progname.
	* fork.cc (frok::parent): Fix typos in debug output.
	* spawn.cc (spawn_guts): Copy wide Win32 filename into _pinfo::progname,
	rather than native NT name.
This commit is contained in:
Corinna Vinschen
2010-06-29 10:28:40 +00:00
parent a6076c2cdc
commit e7daa3ed75
4 changed files with 14 additions and 6 deletions

View File

@ -342,7 +342,7 @@ frok::parent (volatile char * volatile stack_here)
si.lpReserved2 = (LPBYTE) &ch;
si.cbReserved2 = sizeof (ch);
syscall_printf ("CreateProcess (%W, %W, 0, 0, 1, %p, 0, 0, %p, %p)",
syscall_printf ("CreateProcessW (%W, %W, 0, 0, 1, %p, 0, 0, %p, %p)",
myself->progname, myself->progname, c_flags, &si, &pi);
bool locked = __malloc_lock ();
time_t start_time = time (NULL);
@ -367,7 +367,7 @@ frok::parent (volatile char * volatile stack_here)
if (!rc)
{
this_errno = geterrno_from_win_error ();
__small_sprintf (errbuf, "CreatProcessW failed for '%W'", myself->progname);
__small_sprintf (errbuf, "CreateProcessW failed for '%W'", myself->progname);
error = errbuf;
memset (&pi, 0, sizeof (pi));
goto cleanup;