diff options
| author | JosJuice <josjuice@gmail.com> | 2015-08-10 19:11:29 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-11-01 20:30:49 +0100 |
| commit | 6dce8b4debc6ac41ce11bc328e38c85ce54b3fff (patch) | |
| tree | 2a026d86f42f64e24c5f6d87f9b14b69ea8ace22 /Source/Core/DiscIO/DiscScrubber.cpp | |
| parent | a0b873445fb2e48e518b173af06187ffd1044940 (diff) | |
DiscScrubber: Add another nullptr check
Diffstat (limited to 'Source/Core/DiscIO/DiscScrubber.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscScrubber.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index db68027f8c..1546abf0b5 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); |
