Merge pull request #10997 from JosJuice/nfs-check

DiscIO: Fix an incorrect error check in NFSBlob
This commit is contained in:
Admiral H. Curtiss 2022-08-22 15:14:15 +02:00 committed by GitHub
commit aba87ba1e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}