Browse Source

_set_invalid_parameter_handler() apparently not available in VS2003

Conditionally include for VS2010+
rarified/purefunctiondebug
rarified 5 years ago
parent
commit
4e5b51b405
  1. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp

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

Loading…
Cancel
Save