Commit 69032389 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

dbghelp: Don't check version of Mach-O dyld_all_image_infos structure.

The structure has changed repeatedly, but always in a backward compatible way. The version check was only hampering us.
parent 131a0463
...@@ -1170,7 +1170,6 @@ static BOOL macho_enum_modules_internal(const struct process* pcs, ...@@ -1170,7 +1170,6 @@ static BOOL macho_enum_modules_internal(const struct process* pcs,
if (!pcs->dbg_hdr_addr || if (!pcs->dbg_hdr_addr ||
!ReadProcessMemory(pcs->handle, (void*)pcs->dbg_hdr_addr, !ReadProcessMemory(pcs->handle, (void*)pcs->dbg_hdr_addr,
&image_infos, sizeof(image_infos), NULL) || &image_infos, sizeof(image_infos), NULL) ||
(image_infos.version != 1 && image_infos.version != 2) ||
!image_infos.infoArray) !image_infos.infoArray)
goto done; goto done;
TRACE("Process has %u image infos at %p\n", image_infos.infoArrayCount, image_infos.infoArray); TRACE("Process has %u image infos at %p\n", image_infos.infoArrayCount, image_infos.infoArray);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment