forked from dolphin-emu/dolphin
Fix a crash that got recently introduced.
When CFileSystemGCWii::GetFileName can't find a valid filename it would return nullptr. nullptr as a std::string throws an assert within the std lib. So return an empty string and check if it is empty or not
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user