Fix a crash with fastmem disabled.

When the core is busy shutting down only uninstall the exception handler if fastmem is actually enabled.
We only install when fastmem is enabled, so only uninstall when it is as well.

Fixes a crash I was getting on ARMv7.
This commit is contained in:
Ryan Houdek 2015-02-24 04:52:37 -06:00
parent bd0d5c1a22
commit 28e55d29f2
1 changed files with 2 additions and 1 deletions

View File

@ -337,7 +337,8 @@ static void CpuThread()
if (!_CoreParameter.bCPUThread)
g_video_backend->Video_Cleanup();
EMM::UninstallExceptionHandler();
if (_CoreParameter.bFastmem)
EMM::UninstallExceptionHandler();
return;
}