winedbg: Fix buffer size for 8-byte watchpoint.
authorEric Pouech <eric.pouech@orange.fr>
Mon, 12 Apr 2010 19:18:05 +0000 (21:18 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 13 Apr 2010 09:41:54 +0000 (11:41 +0200)
programs/winedbg/break.c

index e35250c56dc83b738b01a9a9eab43c396d653675..6413c43a0786eae616261c3a10487ac12fc9614b 100644 (file)
@@ -139,7 +139,7 @@ static      int init_xpoint(int type, const ADDRESS64* addr)
  */
 static BOOL    get_watched_value(int num, DWORD64* val)
 {
-    BYTE        buf[4];
+    DWORD64     buf[1];
 
     if (!dbg_read_memory(memory_to_linear_addr(&dbg_curr_process->bp[num].addr),
                          buf, dbg_curr_process->bp[num].w.len + 1))