[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH 6/6] dbghelp/msc: Use the word size of the target process.
From:       Zebediah Figura <z.figura12 () gmail ! com>
Date:       2018-07-31 16:17:39
Message-ID: 1533053859-30438-6-git-send-email-z.figura12 () gmail ! com
[Download RAW message or body]

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
---
 dlls/dbghelp/msc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 20c716e..0508e12 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -3089,10 +3089,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);
-- 
2.7.4




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic