mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
GCMemcardDirectory: Avoid undefined behavior in ClearBlock().
This commit is contained in:
@ -430,7 +430,7 @@ void GCMemcardDirectory::ClearBlock(u32 address)
|
|||||||
if (m_last_block == -1)
|
if (m_last_block == -1)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
((Memcard::GCMBlock*)m_last_block_address)->Erase();
|
std::memset(m_last_block_address, 0xFF, Memcard::BLOCK_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void GCMemcardDirectory::SyncSaves()
|
inline void GCMemcardDirectory::SyncSaves()
|
||||||
|
Reference in New Issue
Block a user