Commit 41221452 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Don't use invalid address mode in exception prolog.

Removes a GCC 12.2 warning about printing NULL string. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
parent 5f29bcda
......@@ -153,7 +153,7 @@ static BOOL dbg_exception_prolog(BOOL is_debug, const EXCEPTION_RECORD* rec)
if (addr.Mode != dbg_curr_thread->addr_mode)
{
const char* name = NULL;
const char* name;
switch (addr.Mode)
{
......@@ -162,6 +162,7 @@ static BOOL dbg_exception_prolog(BOOL is_debug, const EXCEPTION_RECORD* rec)
case AddrModeReal: name = "vm86"; break;
case AddrModeFlat: name = dbg_curr_process->be_cpu->pointer_size == 4
? "32 bit" : "64 bit"; break;
default: return FALSE;
}
dbg_printf("In %s mode.\n", name);
dbg_curr_thread->addr_mode = addr.Mode;
......
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