* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.

This commit is contained in:
Christopher Faylor 2004-07-22 18:25:52 +00:00
parent 0da793ff2b
commit 5b7534fec3
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-07-22 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
2004-07-20 Corinna Vinschen <corinna@vinschen.de>
* shm.cc: Whitespace fixes.

View File

@ -194,7 +194,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
procinfo = (_pinfo *) MapViewOfFileEx (h, access, 0, 0, 0, mapaddr);
if (!procinfo)
api_fatal ("MapViewOfFileEx failed, %E");
api_fatal ("MapViewOfFileEx(%p) failed, %E", h);
ProtectHandle1 (h, pinfo_shared_handle);
if ((procinfo->process_state & PID_INITIALIZING) && (flag & PID_NOREDIR)