Module: Don't report broken stubs from old states.

This commit is contained in:
Unknown W. Brackets 2016-09-18 09:00:12 -07:00
parent f77ba7ba3a
commit e02440b68a

View File

@ -301,8 +301,17 @@ public:
}
} else {
// Older save state. Let's still reload, but this may not pick up new flags, etc.
bool foundBroken = false;
for (auto func : importedFuncs) {
ImportFunc(func, true);
if (func.moduleName[KERNELOBJECT_MAX_NAME_LENGTH] != '\0' || !Memory::IsValidAddress(func.stubAddr)) {
foundBroken = true;
} else {
ImportFunc(func, true);
}
}
if (foundBroken) {
ERROR_LOG(LOADER, "Broken stub import data while loading state");
}
}