Disable writing a crash file completely on Windows.
authorAntony Riakiotakis <kalast@gmail.com>
Mon, 1 Jun 2015 16:54:03 +0000 (18:54 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Mon, 1 Jun 2015 16:54:03 +0000 (18:54 +0200)
We had some reports where users did not even read the "Not supported on
release builds" message, and arguably writing a file sort of indicates
that the file may include something useful.

source/creator/creator.c

index 3ad804517fca69d1073081ca418036cd57e1a292..d62f255ea0d63efb8ace3f5ebeb02f62b6abe0dc 100644 (file)
@@ -678,7 +678,11 @@ LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS *ExceptionInfo)
        /* If this is a stack overflow then we can't walk the stack, so just show
         * where the error happened */
        if (EXCEPTION_STACK_OVERFLOW != ExceptionInfo->ExceptionRecord->ExceptionCode) {
+#ifdef NDEBUG
+               TerminateProcess(GetCurrentProcess(), SIGSEGV);
+#else
                blender_crash_handler(SIGSEGV);
+#endif
        }
 
        return EXCEPTION_EXECUTE_HANDLER;