winedbg: Fix maint type when no process is active.

This commit is contained in:
Eric Pouech 2007-03-04 17:04:18 +01:00 committed by Alexandre Julliard
parent 5a19e3b7bc
commit 51a9b2273b
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}