mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Oops, would still infinite loop on a bad module.
Should really fix #6552 this time.
This commit is contained in:
parent
2da02f97c8
commit
ff7c3ab10d
1 changed files with 6 additions and 1 deletions
|
@ -1478,9 +1478,14 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str
|
|||
{
|
||||
u32 error;
|
||||
while (!loadedModules.empty()) {
|
||||
Module *module = kernelObjects.Get<Module>(*loadedModules.begin(), error);
|
||||
SceUID moduleID = *loadedModules.begin();
|
||||
Module *module = kernelObjects.Get<Module>(moduleID, error);
|
||||
if (module) {
|
||||
module->Cleanup();
|
||||
} else {
|
||||
// An invalid module. We need to remove it or we'll loop forever.
|
||||
WARN_LOG(LOADER, "Invalid module still marked as loaded on loadexec");
|
||||
loadedModules.erase(moduleID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue