Fix symbolmap loading issue on MSVC 2015.

This commit is contained in:
Unknown W. Brackets 2015-09-07 09:24:15 -07:00
parent 77f0de9b63
commit 936ccbf18a

View File

@ -121,7 +121,7 @@ bool SymbolMap::LoadSymbolMap(const char *filename) {
SymbolType type;
char name[128] = {0};
if (sscanf(line, ".module %x %08x %08x %127c", &moduleIndex, &address, &size, name) == 4) {
if (sscanf(line, ".module %x %08x %08x %127c", &moduleIndex, &address, &size, name) >= 3) {
// Found a module definition.
ModuleEntry mod;
mod.index = moduleIndex;