* strace.cc (strace::vsprntf): Avoid printing a zero pid.

This commit is contained in:
Christopher Faylor 2005-09-27 18:54:32 +00:00
parent 91049bd9cd
commit e0be0a1d50
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-09-27 Christopher Faylor <cgf@timesys.com>
* strace.cc (strace::vsprntf): Avoid printing a zero pid.
2005-09-27 Corinna Vinschen <corinna@vinschen.de>
* init.cc (dll_entry): Call IsWow64Process with GetCurrentProcess

View File

@ -149,7 +149,7 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap)
*p = '\000';
p = progname;
count = __small_sprintf (buf, fmt, p && *p ? p : "?",
myself ? myself->pid : GetCurrentProcessId (),
(myself && myself->pid) ? myself->pid : GetCurrentProcessId (),
execing ? "!" : "");
if (func)
count += getfunc (buf + count, func);