Eric Pouech : dbghelp: When failing to look up for a PDB file, don' t keep a module format object around.

Alexandre Julliard julliard at winehq.org
Tue Jan 18 10:27:34 CST 2011


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Mon Jan 17 21:57:46 2011 +0100

dbghelp: When failing to look up for a PDB file, don't keep a module format object around.

---

 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-cvs mailing list