Don't print dialog box prior to crashing.

This returns us to our previous behavior when we used 0xbbadbeef
to cause the process to terminate.

BUG=skia:4893
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1667113002

Review URL: https://codereview.chromium.org/1667113002
This commit is contained in:
djsollen 2016-02-04 08:59:35 -08:00 committed by Commit bot
parent 0bd103497a
commit 6b48984333

View File

@ -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();
}