Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: skia/ext/canvas_paint_win.h

Issue 10984023: Call exit(1) if we mean to crash, rather than *(char*)0 = 0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/canvas_paint_win.h
===================================================================
--- skia/ext/canvas_paint_win.h (revision 158570)
+++ skia/ext/canvas_paint_win.h (working copy)
@@ -111,7 +111,8 @@
const int height = ps_.rcPaint.bottom - ps_.rcPaint.top;
if (!canvas->initialize(width, height, opaque, NULL)) {
// Cause a deliberate crash;
- *(char*) 0 = 0;
+ __debugbreak();
+ _exit(1);
}
canvas->clear(SkColorSetARGB(0, 0, 0, 0));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698