Index: src/ports/SkMemory_malloc.cpp |
diff --git a/src/ports/SkMemory_malloc.cpp b/src/ports/SkMemory_malloc.cpp |
index 008352ec4abd5a75da7d4fc2875903cc32ac71e9..9fc17b7c34caa9e835c15111b811c471a2ead069 100644 |
--- a/src/ports/SkMemory_malloc.cpp |
+++ b/src/ports/SkMemory_malloc.cpp |
@@ -27,6 +27,10 @@ static inline void* throw_on_failure(size_t size, void* p) { |
} |
void sk_abort_no_print() { |
+#ifdef SK_BUILD_FOR_WIN |
+ // do not display a system dialog before aborting the process |
+ _set_abort_behavior(0, _WRITE_ABORT_MSG); |
+#endif |
abort(); |
} |