mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-23 07:00:45 +02:00
Fix crash in ELFDB if it tried loading something that wasn't an ELF
This commit is contained in:
1 parent
490352f568
commit
61cd3eb3ce
1 file changed
+5
@@ -61,6 +61,11 @@ ELFSymbolDatabase::ELFSymbolDatabase(::ELFLoader::ELFContainer *file)
|
||||
: File {file} {
|
||||
FillLibrarySearchPaths();
|
||||
|
||||
// Don't try to load the file if it was invalid
|
||||
if (!File->WasLoaded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<std::string> UnfilledDependencies;
|
||||
std::vector<ELFInfo*> NewLibraries;
|
||||
|
||||
|
||||
Reference in new issue
Block a user