mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DSPHLE: Fix 1 potential and 2 actual crash bugs affecting 32-bit.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3768 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -37,7 +37,16 @@ public:
|
||||
u16 ReadDSPMailboxLow();
|
||||
void Update();
|
||||
|
||||
u32 GetNextMail() { return m_Mails.front(); }
|
||||
u32 GetNextMail()
|
||||
{
|
||||
if (m_Mails.size())
|
||||
return m_Mails.front();
|
||||
else
|
||||
{
|
||||
WARN_LOG(DSPHLE, "GetNextMail: No mails");
|
||||
return 0; //
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
// mail handler
|
||||
|
Reference in New Issue
Block a user