mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[WINESYNC] dbghelp/msc: Use the word size of the target process.
Signed-off-by: Zebediah Figura <[email protected]> Signed-off-by: Alexandre Julliard <[email protected]> wine commit id ca9b1d0077874c94715cd2ceeff114853151ed2d by Zebediah Figura <[email protected]>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user