Core/Debugging: Make abort() less bad on windows by forcing crash log generation

(cherry picked from commit dea7d429ab)

# Conflicts:
#	src/server/bnetserver/Main.cpp
This commit is contained in:
Shauren
2016-03-03 17:29:48 +01:00
committed by Aokromes
parent 504feb663b
commit 702d19039e
4 changed files with 13 additions and 0 deletions

View File

@@ -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