[PATCH] [WineDbg]: fix maint type when no process is active
Eric Pouech
eric.pouech at wanadoo.fr
Sun Mar 4 10:04:18 CST 2007
A+
---
programs/winedbg/types.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 0208ec5..939e5df 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -573,6 +573,11 @@ static BOOL CALLBACK print_types_mod_cb(
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;
}
More information about the wine-patches
mailing list