Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10997 from JosJuice/nfs-check
DiscIO: Fix an incorrect error check in NFSBlob
  • Loading branch information
AdmiralCurtiss committed Aug 22, 2022
2 parents cc3e6a1 + 052fdfa commit aba87ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DiscIO/NFSBlob.cpp
Expand Up @@ -136,8 +136,8 @@ std::unique_ptr<NFSFileReader> NFSFileReader::Create(File::IOFile first_file,
return nullptr;

NFSHeader header;
if (!first_file.Seek(0, File::SeekOrigin::Begin) ||
!first_file.ReadArray(&header, 1) && header.magic != NFS_MAGIC)
if (!first_file.Seek(0, File::SeekOrigin::Begin) || !first_file.ReadArray(&header, 1) ||
header.magic != NFS_MAGIC)
{
return nullptr;
}
Expand Down

0 comments on commit aba87ba

Please sign in to comment.