Eric Pouech : winedbg: Fix crash when no process attached in 'info wnd' command.
Alexandre Julliard
julliard at winehq.org
Fri Jul 2 14:46:40 CDT 2021
Module: wine
Branch: master
Commit: 5d8bad570d23fe7d69a04d8162fc3d4b76aad625
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5d8bad570d23fe7d69a04d8162fc3d4b76aad625
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Fri Jul 2 09:43:32 2021 +0200
winedbg: Fix crash when no process attached in 'info wnd' command.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49625
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winedbg/debugger.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/winedbg/debugger.h b/programs/winedbg/debugger.h
index b7c765ac545..3733e1b410f 100644
--- a/programs/winedbg/debugger.h
+++ b/programs/winedbg/debugger.h
@@ -39,7 +39,7 @@
#include "oaidl.h"
#include <wine/list.h>
-#define ADDRSIZE (dbg_curr_process->be_cpu->pointer_size)
+#define ADDRSIZE (dbg_curr_process ? dbg_curr_process->be_cpu->pointer_size : (int)sizeof(void*))
#define ADDRWIDTH (ADDRSIZE * 2)
/* the debugger uses these exceptions for its internal use */
More information about the wine-cvs
mailing list