mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WINESYNC] dbghelp/msc: Use the word size of the target process.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id ca9b1d0077874c94715cd2ceeff114853151ed2d by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
parent
e9161985e1
commit
d3849da5c4
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -3,4 +3,4 @@ directories:
|
|||
files:
|
||||
include/dbghelp.h: sdk/include/psdk/dbghelp.h
|
||||
tags:
|
||||
wine: b7defd2946e625351111c36ff0f521b8aa9e6487
|
||||
wine: ca9b1d0077874c94715cd2ceeff114853151ed2d
|
||||
|
|
Loading…
Reference in a new issue