DiscScrubber: Add another nullptr check

This commit is contained in:
JosJuice 2015-08-10 19:11:29 +02:00
parent a0b873445f
commit 6dce8b4deb
1 changed files with 3 additions and 0 deletions

View File

@ -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);