Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-06-01 19:54:03 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-06-01 19:54:03 +0300
commit893677a76a2cb326aa55392629c58f9069b41597 (patch)
treecf85bde8169420a27a83508a7e5fcf2b392e4424 /source/creator
parenta6101cde06e433a45f3d7ff13bf745a442c4fecf (diff)
Disable writing a crash file completely on Windows.
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.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 3ad804517fc..d62f255ea0d 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -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;