Merge pull request #423 from Pan7/minid

No Minidump for debug builds
This commit is contained in:
Timothee "TTimo" Besset 2017-03-07 17:56:00 -05:00 committed by GitHub
commit 42e18043e9
1 changed files with 2 additions and 2 deletions

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() ) ) {