mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 10:28:12 +00:00
Fix segfault-on-emu_stop() bug.
This commit is contained in:
parent
696c58f9f0
commit
4151d1d600
1 changed files with 4 additions and 2 deletions
6
uc.c
6
uc.c
|
@ -525,8 +525,10 @@ uc_err uc_emu_stop(uc_engine *uc)
|
||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
|
|
||||||
uc->stop_request = true;
|
uc->stop_request = true;
|
||||||
// exit the current TB
|
if (uc->current_cpu) {
|
||||||
cpu_exit(uc->current_cpu);
|
// exit the current TB
|
||||||
|
cpu_exit(uc->current_cpu);
|
||||||
|
}
|
||||||
|
|
||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue