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:
hrydgard
2009-07-12 20:14:21 +00:00
parent fe76193641
commit c45dfd156f
2 changed files with 15 additions and 5 deletions

View File

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