From 052fdfa00dec8e5881d5643032b32604d117c4f2 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 14 Aug 2022 16:04:12 +0200 Subject: [PATCH] DiscIO: Fix an incorrect error check in NFSBlob --- Source/Core/DiscIO/NFSBlob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DiscIO/NFSBlob.cpp b/Source/Core/DiscIO/NFSBlob.cpp index da558361da..f2a6a5707b 100644 --- a/Source/Core/DiscIO/NFSBlob.cpp +++ b/Source/Core/DiscIO/NFSBlob.cpp @@ -136,8 +136,8 @@ std::unique_ptr 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; }