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@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 5d8bad570d)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Eric Pouech 2021-07-02 09:43:32 +02:00 committed by Michael Stefaniuc
parent f0143c1bc9
commit 26c739a4fe
1 changed files with 1 additions and 1 deletions

View File

@ -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 */