mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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