* pinfo.cc (_onreturn::~onreturn): Don't attempt to close a NULL handle.

This commit is contained in:
Christopher Faylor
2006-08-10 20:25:54 +00:00
parent 2f98d8bdc7
commit 1767b8d028
3 changed files with 8 additions and 2 deletions

View File

@ -240,7 +240,7 @@ close_handle (const char *func, int ln, HANDLE h, const char *name, bool force)
#if 1 /* Uncomment to see CloseHandle failures */
if (!ret)
small_printf ("CloseHandle(%s) failed %s:%d\n", name, func, ln);
small_printf ("CloseHandle(%s) %p failed %s:%d, %E\n", name, h, func, ln);
#endif
return ret;
}