mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 18:59:19 +00:00
GCMemcardDirectory: Avoid undefined behavior in ClearBlock().
This commit is contained in:
parent
131eb9107b
commit
b175c203e4
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ void GCMemcardDirectory::ClearBlock(u32 address)
|
|||
if (m_last_block == -1)
|
||||
return;
|
||||
}
|
||||
((Memcard::GCMBlock*)m_last_block_address)->Erase();
|
||||
std::memset(m_last_block_address, 0xFF, Memcard::BLOCK_SIZE);
|
||||
}
|
||||
|
||||
inline void GCMemcardDirectory::SyncSaves()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue