Commit 5d8bad57 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Fix crash when no process attached in 'info wnd' command.

parent fcda0afd
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment