|
|
|
@ -1989,7 +1989,9 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
|
|
|
|
// Sigh... The Visual C++ Runtime likes to throw up dialogs sometimes.
|
|
|
|
|
// The user cares not about dialogs. We just want to get a minidump...
|
|
|
|
|
// See: http://www.altdevblogaday.com/2012/07/20/more-adventures-in-failing-to-crash-properly/
|
|
|
|
|
#if _MSC_VER >= 1600 // VS2010+
|
|
|
|
|
_set_invalid_parameter_handler(IInvalidParameter); |
|
|
|
|
#endif // _MSC_VER >= 1600 VS2010+
|
|
|
|
|
_set_purecall_handler(IPureVirtualCall); |
|
|
|
|
#endif // _MSC_VER
|
|
|
|
|
|
|
|
|
|