Commit c52e1638 authored by Eli Zaretskii's avatar Eli Zaretskii

(w32_abort): Use the MB_YESNO dialog instead of

MB_ABORTRETRYIGNORE.  Never return, even if DebugBreak does.
parent f586d18e
......@@ -8894,24 +8894,25 @@ void globals_of_w32fns ()
#undef abort
void w32_abort (void) NO_RETURN;
void
w32_abort()
{
int button;
button = MessageBox (NULL,
"A fatal error has occurred!\n\n"
"Select Abort to exit, Retry to debug, Ignore to continue",
"Would you like to attach a debugger?\n\n"
"Select YES to debug, NO to abort Emacs",
"Emacs Abort Dialog",
MB_ICONEXCLAMATION | MB_TASKMODAL
| MB_SETFOREGROUND | MB_ABORTRETRYIGNORE);
| MB_SETFOREGROUND | MB_YESNO);
switch (button)
{
case IDRETRY:
case IDYES:
DebugBreak ();
break;
case IDIGNORE:
break;
case IDABORT:
exit (2); /* tell the compiler we will never return */
case IDNO:
default:
abort ();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment