Module: wine Branch: master Commit: 28a25b052d21a9e2e4fc3c7790711b290d44a488 URL: https://source.winehq.org/git/wine.git/?a=commit;h=28a25b052d21a9e2e4fc3c779...
Author: Ken Thomases ken@codeweavers.com Date: Thu Dec 12 19:43:18 2019 -0600
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
---
dlls/dbghelp/macho_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c index 9d83b006b7..8eda11ab91 100644 --- a/dlls/dbghelp/macho_module.c +++ b/dlls/dbghelp/macho_module.c @@ -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