mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
_set_invalid_parameter_handler() apparently not available in VS2003
Conditionally include for VS2010+
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user