Fixed a crash

This commit is contained in:
zhupengfei
2020-05-01 13:11:10 +08:00
parent c27589ce53
commit 0f7ebef23f
+1 -1
View File
@@ -277,7 +277,7 @@ ResultStatus NCCHContainer::LoadSectionExeFS(const char* name, std::vector<u8>&
if (result != ResultStatus::Success) if (result != ResultStatus::Success)
return result; return result;
if (!exefs_file->IsOpen()) if (!exefs_file || !exefs_file->IsOpen())
return ResultStatus::Error; return ResultStatus::Error;
LOG_DEBUG(Service_FS, "{} sections:", kMaxSections); LOG_DEBUG(Service_FS, "{} sections:", kMaxSections);