SL-16004 Fix bugsplat displaying wrong top function

bugsplat shows KERNELBASE!RaiseException and flush() insread of forceErrorLLError, function crashes too early.
master
Andrey Kleshchev 2021-09-15 22:31:02 +03:00
parent ab3261f901
commit 96d7cd29f6
1 changed files with 4 additions and 1 deletions

View File

@ -1397,7 +1397,10 @@ namespace LLError
if (site.mLevel == LEVEL_ERROR)
{
g->mFatalMessage = message;
s->mCrashFunction(message);
if (s->mCrashFunction)
{
s->mCrashFunction(message);
}
}
}
}