fix for "properties-crash" by lpfaint

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4202 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-09-04 18:21:10 +00:00
parent 0d1662e020
commit f190050c46
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ bool ShowSound(std::string FileName)
void ReadGC(std::string FileName) void ReadGC(std::string FileName)
{ {
OpenISO = DiscIO::CreateVolumeFromFilename(FileName); OpenISO = DiscIO::CreateVolumeFromFilename(FileName);
if (!OpenISO) return;
if (!DiscIO::IsVolumeWiiDisc(OpenISO)) if (!DiscIO::IsVolumeWiiDisc(OpenISO))
{ {
pFileSystem = DiscIO::CreateFileSystem(OpenISO); pFileSystem = DiscIO::CreateFileSystem(OpenISO);