https://git.reactos.org/?p=reactos.git;a=commitdiff;h=30e30ca49a4bbd4fd00bc…
commit 30e30ca49a4bbd4fd00bc165a37f152a7ac3e584
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Fri Sep 11 16:49:21 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Sep 16 10:35:43 2020 +0200
[WINESYNC] dbghelp: Fix reading the address of the target's dyld image info from
its PEB.
Signed-off-by: Ken Thomases <ken(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 28a25b052d21a9e2e4fc3c7790711b290d44a488 by Ken Thomases
<ken(a)codeweavers.com>
---
dll/win32/dbghelp/macho_module.c | 2 +-
sdk/tools/winesync/dbghelp.cfg | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/dbghelp/macho_module.c b/dll/win32/dbghelp/macho_module.c
index 9d83b006b7c..8eda11ab91c 100644
--- a/dll/win32/dbghelp/macho_module.c
+++ b/dll/win32/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
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index 40f477e891f..24fb63533e3 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -4,4 +4,4 @@ files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
tags:
- wine: ae6e4017548fc30bf5220bebc674230dc4ccfe06
+ wine: 28a25b052d21a9e2e4fc3c7790711b290d44a488