* pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.

This commit is contained in:
Christopher Faylor 2004-07-16 15:49:22 +00:00
parent dbfd3394e9
commit 1d2fd38847
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-07-16 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.
2004-07-15 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (mmap_record::alloc_page_map): Mark pages as allocated even

View File

@ -193,6 +193,8 @@ 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");
ProtectHandle1 (h, pinfo_shared_handle);
if ((procinfo->process_state & PID_INITIALIZING) && (flag & PID_NOREDIR)