* pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user