Merge pull request #10997 from JosJuice/nfs-check
DiscIO: Fix an incorrect error check in NFSBlob
This commit is contained in:
commit
aba87ba1e3
|
@ -136,8 +136,8 @@ std::unique_ptr<NFSFileReader> NFSFileReader::Create(File::IOFile first_file,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
NFSHeader header;
|
NFSHeader header;
|
||||||
if (!first_file.Seek(0, File::SeekOrigin::Begin) ||
|
if (!first_file.Seek(0, File::SeekOrigin::Begin) || !first_file.ReadArray(&header, 1) ||
|
||||||
!first_file.ReadArray(&header, 1) && header.magic != NFS_MAGIC)
|
header.magic != NFS_MAGIC)
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue