mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
Exceptions fixed
This commit is contained in:
parent
ad524798fa
commit
2fe52451e1
2 changed files with 13 additions and 13 deletions
|
@ -283,7 +283,7 @@ void CPUThread::ExecOnce()
|
|||
#ifdef _WIN32
|
||||
void _se_translator(unsigned int u, EXCEPTION_POINTERS* pExp)
|
||||
{
|
||||
const u64 addr = (u64)Memory.GetBaseAddr() - (u64)pExp->ExceptionRecord->ExceptionAddress;
|
||||
const u64 addr = (u64)pExp->ExceptionRecord->ExceptionInformation[1] - (u64)Memory.GetBaseAddr();
|
||||
if (addr < 0x100000000 && u == EXCEPTION_ACCESS_VIOLATION)
|
||||
{
|
||||
// TODO: allow recovering from a page fault
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue