Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c52e1638
Commit
c52e1638
authored
Jun 12, 2005
by
Eli Zaretskii
Browse files
(w32_abort): Use the MB_YESNO dialog instead of
MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
parent
f586d18e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/w32fns.c
src/w32fns.c
+8
-7
No files found.
src/w32fns.c
View file @
c52e1638
...
...
@@ -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 ID
RETRY
:
case ID
YES
:
DebugBreak ();
break;
case IDIGNORE:
break;
case IDABORT:
exit (2); /* tell the compiler we will never return */
case IDNO:
default:
abort ();
break;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment