Commit 28a25b05 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

dbghelp: Fix reading the address of the target's dyld image info from its PEB.

parent ee639a55
......@@ -1366,7 +1366,7 @@ static ULONG_PTR get_dyld_image_info_address(struct process* pcs)
if (status == STATUS_SUCCESS)
{
/* Read dyld image info address from PEB */
if (!pcs->is_64bit)
if (pcs->is_64bit)
ret = ReadProcessMemory(pcs->handle, &pbi.PebBaseAddress->Reserved[0],
&dyld_image_info_address, sizeof(dyld_image_info_address), NULL);
else
......
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