From 51a9b2273b25b5bb19d016dc33262f8dc5c8059f Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 4 Mar 2007 17:04:18 +0100 Subject: [PATCH] winedbg: Fix maint type when no process is active. --- programs/winedbg/types.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c index 0208ec5e383..939e5df9949 100644 --- a/programs/winedbg/types.c +++ b/programs/winedbg/types.c @@ -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; } -- 2.11.4.GIT