winedbg: Fix maint type when no process is active.
This commit is contained in:
parent
5a19e3b7bc
commit
51a9b2273b
|
@ -573,6 +573,11 @@ static BOOL CALLBACK print_types_mod_cb(PSTR mod_name, DWORD base, void* ctx)
|
|||
|
||||
int print_types(void)
|
||||
{
|
||||
if (!dbg_curr_process)
|
||||
{
|
||||
dbg_printf("No known process, cannot print types\n");
|
||||
return 0;
|
||||
}
|
||||
SymEnumerateModules(dbg_curr_process->handle, print_types_mod_cb, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue