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:
parent
0bd103497a
commit
6b48984333
@ -27,6 +27,10 @@ static inline void* throw_on_failure(size_t size, void* p) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void sk_abort_no_print() {
|
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();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user