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

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2019-12-12 19:43:18 -06:00 committed by Alexandre Julliard
parent ee639a55e6
commit 28a25b052d
1 changed files with 1 additions and 1 deletions

View File

@ -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