mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 05:03:35 +02:00
SaveState: Fix use-after-resize iterator.
Only on older save states.
This commit is contained in:
@@ -301,7 +301,9 @@ 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) {
|
||||
auto importedFuncsState = importedFuncs;
|
||||
importedFuncs.clear();
|
||||
for (auto func : importedFuncsState) {
|
||||
if (func.moduleName[KERNELOBJECT_MAX_NAME_LENGTH] != '\0' || !Memory::IsValidAddress(func.stubAddr)) {
|
||||
foundBroken = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user