* strace.cc (strace::vprntf): Avoid closing unopened handle.
This commit is contained in:
parent
58349d7c9d
commit
d85a0c243b
|
@ -1,3 +1,7 @@
|
|||
2011-05-02 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||
|
||||
* strace.cc (strace::vprntf): Avoid closing unopened handle.
|
||||
|
||||
2011-05-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||
|
||||
* sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.
|
||||
|
|
|
@ -254,10 +254,12 @@ strace::vprntf (unsigned category, const char *func, const char *fmt, va_list ap
|
|||
FILE_SHARE_WRITE | FILE_SHARE_WRITE,
|
||||
&sec_none, OPEN_EXISTING, 0, 0);
|
||||
if (h != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
WriteFile (h, buf, len, &done, 0);
|
||||
CloseHandle (h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NOSTRACE
|
||||
if (active ())
|
||||
|
|
Loading…
Reference in New Issue