From 20081a98f69c7390b11b7731ce9908502fc1717d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 10 Aug 2015 19:11:29 +0200 Subject: [PATCH] DiscScrubber: Add another nullptr check --- Source/Core/DiscIO/DiscScrubber.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index 8f2eb8ee5b..e1b46450c4 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -95,6 +95,9 @@ bool SetupScrub(const std::string& filename, int block_size) m_BlocksPerCluster = CLUSTER_SIZE / m_BlockSize; m_Disc = CreateVolumeFromFilename(filename); + if (!m_Disc) + return false; + m_FileSize = m_Disc->GetSize(); u32 numClusters = (u32)(m_FileSize / CLUSTER_SIZE);