mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
DiscIO: Fix an incorrect error check in NFSBlob
This commit is contained in:
parent
b6a18b0da5
commit
052fdfa00d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue