winedbg: Use correct CALL operand size when fetching the delta.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Conor McCarthy 2019-11-23 01:15:55 +10:00 committed by Alexandre Julliard
parent 15e30b9c02
commit f9e1a82764
1 changed files with 3 additions and 3 deletions

View File

@ -356,14 +356,14 @@ static BOOL fetch_value(const char* addr, unsigned sz, int* value)
switch (sz)
{
case 8:
case 1:
if (!dbg_read_memory(addr, &value8, sizeof(value8))) return FALSE;
*value = value8;
break;
case 16:
case 2:
if (!dbg_read_memory(addr, &value16, sizeof(value16))) return FALSE;
*value = value16;
case 32:
case 4:
if (!dbg_read_memory(addr, value, sizeof(*value))) return FALSE;
break;
default: return FALSE;