mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-12 11:08:56 +00:00
Merge pull request #2701 from mickdermack/pr-jitnull
Prevent nullptr dereference on a crash with no JIT present
This commit is contained in:
commit
009148d401
1 changed files with 6 additions and 0 deletions
|
@ -203,6 +203,12 @@ namespace JitInterface
|
|||
|
||||
bool HandleFault(uintptr_t access_address, SContext* ctx)
|
||||
{
|
||||
// Prevent nullptr dereference on a crash with no JIT present
|
||||
if (!jit)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return jit->HandleFault(access_address, ctx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue