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

Alexandre Julliard julliard at winehq.org
Fri Nov 22 16:17:26 CST 2019


Module: wine
Branch: master
Commit: f9e1a8276433e3d50c2377c686f270884fd80719
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f9e1a8276433e3d50c2377c686f270884fd80719

Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date:   Sat Nov 23 01:15:55 2019 +1000

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

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/be_x86_64.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/winedbg/be_x86_64.c b/programs/winedbg/be_x86_64.c
index 2346bc4d1f..5b95cefa36 100644
--- a/programs/winedbg/be_x86_64.c
+++ b/programs/winedbg/be_x86_64.c
@@ -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;




More information about the wine-cvs mailing list