Author: akhaldi
Date: Sun Jan 30 16:43:08 2011
New Revision: 50571
URL:
http://svn.reactos.org/svn/reactos?rev=50571&view=rev
Log:
[ROSSYM]
- Properly handle images without debug symbols.
Modified:
branches/cmake-bringup/lib/rossym/fromfile.c
Modified: branches/cmake-bringup/lib/rossym/fromfile.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/rossym/fromfi…
==============================================================================
--- branches/cmake-bringup/lib/rossym/fromfile.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/rossym/fromfile.c [iso-8859-1] Sun Jan 30 16:43:08 2011
@@ -67,6 +67,13 @@
SymbolTable = NtHeaders.FileHeader.PointerToSymbolTable;
NumSymbols = NtHeaders.FileHeader.NumberOfSymbols;
+
+ if (!NumSymbols)
+ {
+ DPRINT1("Image doesn't have debug symbols\n");
+ return FALSE;
+ }
+
DPRINT("SymbolTable %x NumSymbols %x\n", SymbolTable, NumSymbols);
/* Load section headers */