Alexandre Julliard : winedump: Don't crash when the PDB filenames table isn 't found.

Alexandre Julliard julliard at winehq.org
Tue Jan 11 10:08:30 CST 2011


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jan 11 14:42:21 2011 +0100

winedump: Don't crash when the PDB filenames table isn't found.

---

 tools/winedump/pdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/winedump/pdb.c b/tools/winedump/pdb.c
index 3cc8882..4568d29 100644
--- a/tools/winedump/pdb.c
+++ b/tools/winedump/pdb.c
@@ -440,7 +440,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
              */
             codeview_dump_linetab2((const char*)modimage + symbol_size + lineno_size,
                                    total_size - (symbol_size + lineno_size),
-                                   filesimage + 12, filessize, "        ");
+                                   filesimage ? filesimage + 12 : NULL, filessize, "        ");
             /* what's that part ??? */
             if (0)
                 dump_data(modimage + symbol_size + lineno_size, total_size - (symbol_size + lineno_size), "    ");




More information about the wine-cvs mailing list