mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #203 from Sonicadvance1/fix-crash
Fix a crash that got recently introduced.
This commit is contained in:
commit
94ceb4d305
@ -143,6 +143,9 @@ void FindFilename(u64 offset)
|
||||
}
|
||||
|
||||
const std::string filename = pFileSystem->GetFileName(offset);
|
||||
|
||||
if (filename.empty())
|
||||
return;
|
||||
|
||||
CheckFile(filename, pFileSystem->GetFileSize(filename));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ const std::string CFileSystemGCWii::GetFileName(u64 _Address)
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
return "";
|
||||
}
|
||||
|
||||
u64 CFileSystemGCWii::ReadFile(const std::string& _rFullPath, u8* _pBuffer, size_t _MaxBufferSize)
|
||||
|
Loading…
x
Reference in New Issue
Block a user