No Minidump for debug builds

This commit is contained in:
Pan7 2017-03-06 14:02:48 +01:00
parent d91edda475
commit 287a48d77b

View file

@ -924,7 +924,7 @@ int mainRadiant( int argc, char* argv[] ) {
} }
#if defined( _WIN32 ) && defined( _MSC_VER ) #if defined( _WIN32 ) && defined( _MSC_VER ) && !defined( _DEBUG )
#include <dbghelp.h> #include <dbghelp.h>
#include <shellapi.h> #include <shellapi.h>
#include <shlobj.h> #include <shlobj.h>
@ -967,7 +967,7 @@ int GenerateDump( EXCEPTION_POINTERS* pExceptionPointers ) {
int main( int argc, char* argv[] ) { int main( int argc, char* argv[] ) {
#if defined( _WIN32 ) && defined( _MSC_VER ) #if defined( _WIN32 ) && defined( _MSC_VER ) && !defined( _DEBUG )
__try { __try {
return mainRadiant( argc, argv ); return mainRadiant( argc, argv );
} __except( GenerateDump( GetExceptionInformation() ) ) { } __except( GenerateDump( GetExceptionInformation() ) ) {