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