[PATCH] [DbgHelp]: when failing to look up for a PDB file, don't keep a module format object around

Eric Pouech eric.pouech at orange.fr
Mon Jan 17 14:57:46 CST 2011


(this prevents winedbg from crashing in this case)

A+
---

 dlls/dbghelp/msc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 5fe3349..91927b3 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -2790,6 +2790,11 @@ static BOOL pdb_process_file(const struct process* pcs,
         msc_dbg->module->module.SourceIndexed = TRUE;
         msc_dbg->module->module.Publics = TRUE;
     }
+    else
+    {
+        msc_dbg->module->format_info[DFI_PDB] = NULL;
+        HeapFree(GetProcessHeap(), 0, modfmt);
+    }
     return ret;
 }
 




More information about the wine-patches mailing list