https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d3849da5c46ea284dc4b5…
commit d3849da5c46ea284dc4b5508da37a6adb92cea70
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Fri Sep 11 14:31:20 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Sep 16 10:35:35 2020 +0200
[WINESYNC] dbghelp/msc: Use the word size of the target process.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id ca9b1d0077874c94715cd2ceeff114853151ed2d by Zebediah Figura
<z.figura12(a)gmail.com>
---
dll/win32/dbghelp/msc.c | 4 ++--
sdk/tools/winesync/dbghelp.cfg | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/win32/dbghelp/msc.c b/dll/win32/dbghelp/msc.c
index 16c350184df..768ed93f889 100644
--- a/dll/win32/dbghelp/msc.c
+++ b/dll/win32/dbghelp/msc.c
@@ -3092,10 +3092,10 @@ static BOOL pev_binop(struct pevaluator* pev, char op)
static BOOL pev_deref(struct pevaluator* pev)
{
char res[PEV_MAX_LEN];
- DWORD_PTR v1, v2;
+ DWORD_PTR v1, v2 = 0;
if (!pev_pop_val(pev, &v1)) return FALSE;
- if (!sw_read_mem(pev->csw, v1, &v2, sizeof(v2)))
+ if (!sw_read_mem(pev->csw, v1, &v2, pev->csw->cpu->word_size))
return PEV_ERROR1(pev, "deref: cannot read mem at %lx\n", v1);
snprintf(res, sizeof(res), "%ld", v2);
pev_push(pev, res);
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index 77b08e5ad01..088fac7999f 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -3,4 +3,4 @@ directories:
files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h
tags:
- wine: b7defd2946e625351111c36ff0f521b8aa9e6487
+ wine: ca9b1d0077874c94715cd2ceeff114853151ed2d