Core/Debugging: Make abort() less bad on windows by forcing crash log generation
(cherry picked from commit dea7d429abe5143672154784f93e4b19020062d5) # Conflicts: # src/server/bnetserver/Main.cpp
This commit is contained in:
1 parent
504feb663b
commit
702d19039e
4 files changed
+13
No files matched your search
@@ -96,4 +96,11 @@ void Abort(char const* file, int line, char const* function)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void AbortHandler(int sigval)
|
||||
{
|
||||
// nothing useful to log here, no way to pass args
|
||||
*((volatile int*)NULL) = 0;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
} // namespace Trinity
|
||||
Reference in new issue
Block a user