Kernel: Shutdown when module load fails.

This prevents us from trying to reinit next time, which can crash since we
never finished initing in the first place.
This commit is contained in:
Unknown W. Brackets
2019-07-07 18:06:06 -07:00
parent 7de4640f4f
commit 556b960355

View File

@@ -1626,6 +1626,7 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str
if (param_argp) delete[] param_argp;
if (param_key) delete[] param_key;
}
__KernelShutdown();
return false;
}