forked from mia/Aegisub
Add missing check for if the context has been initialized in the crash handler
This commit is contained in:
parent
796f26c008
commit
26cfd3ecbd
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ int AegisubApp::OnExit() {
|
||||||
|
|
||||||
static void UnhandledExeception(bool stackWalk, agi::Context *c) {
|
static void UnhandledExeception(bool stackWalk, agi::Context *c) {
|
||||||
#if (!defined(_DEBUG) || defined(WITH_EXCEPTIONS)) && (wxUSE_ON_FATAL_EXCEPTION+0)
|
#if (!defined(_DEBUG) || defined(WITH_EXCEPTIONS)) && (wxUSE_ON_FATAL_EXCEPTION+0)
|
||||||
if (c->ass && c->subsController) {
|
if (c && c->ass && c->subsController) {
|
||||||
auto path = config::path->Decode("?user/recovered");
|
auto path = config::path->Decode("?user/recovered");
|
||||||
agi::fs::CreateDirectory(path);
|
agi::fs::CreateDirectory(path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue