mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #2830 from JosJuice/disc-scrubber-nullptr
DiscScrubber: Add another nullptr check
This commit is contained in:
commit
2dd7702af0
@ -95,6 +95,9 @@ bool SetupScrub(const std::string& filename, int block_size)
|
|||||||
m_BlocksPerCluster = CLUSTER_SIZE / m_BlockSize;
|
m_BlocksPerCluster = CLUSTER_SIZE / m_BlockSize;
|
||||||
|
|
||||||
m_Disc = CreateVolumeFromFilename(filename);
|
m_Disc = CreateVolumeFromFilename(filename);
|
||||||
|
if (!m_Disc)
|
||||||
|
return false;
|
||||||
|
|
||||||
m_FileSize = m_Disc->GetSize();
|
m_FileSize = m_Disc->GetSize();
|
||||||
|
|
||||||
u32 numClusters = (u32)(m_FileSize / CLUSTER_SIZE);
|
u32 numClusters = (u32)(m_FileSize / CLUSTER_SIZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user