Eric Pouech : winedbg: Fix maint type when no process is active.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 5 06:23:33 CST 2007


Module: wine
Branch: master
Commit: 51a9b2273b25b5bb19d016dc33262f8dc5c8059f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=51a9b2273b25b5bb19d016dc33262f8dc5c8059f

Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date:   Sun Mar  4 17:04:18 2007 +0100

winedbg: Fix maint type when no process is active.

---

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




More information about the wine-cvs mailing list