changeset 63340:1cd9a44aa129

(w32_abort): Use the MB_YESNO dialog instead of MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 12 Jun 2005 10:41:05 +0000
parents 1798162ef152
children dccd42ff9e1a
files src/w32fns.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Sun Jun 12 10:26:22 2005 +0000
+++ b/src/w32fns.c	Sun Jun 12 10:41:05 2005 +0000
@@ -8894,24 +8894,25 @@
 
 #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;