[PATCH 1/3] dbghelp: Fix reading the address of the target's dyld image info from its PEB.

Ken Thomases ken at codeweavers.com
Thu Dec 12 19:43:18 CST 2019


Signed-off-by: Ken Thomases <ken at codeweavers.com>
---
 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 9d83b006b7c..8eda11ab91c 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
-- 
2.21.0




More information about the wine-devel mailing list