- Properly handle images without debug symbols.

svn path=/branches/cmake-bringup/; revision=50571
This commit is contained in:
Amine Khaldi 2011-01-30 16:43:08 +00:00
parent 96abfd1223
commit c2e1cbdff3

View file

@ -67,6 +67,13 @@ RosSymCreateFromFile(PVOID FileContext, PROSSYM_INFO *RosSymInfo)
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 */