Commit 59ee4427 authored by Geoff Voelker's avatar Geoff Voelker
Browse files

(main): Explicitly check result of message box for OK.

parent 9dda7cad
......@@ -152,9 +152,12 @@ main (argc, argv)
/* Tell user what we are going to do. */
int result;
char msg[ MAX_PATH ];
sprintf (msg, "Install Emacs at %s?\n", emacs_path);
if (!MessageBox (NULL, msg, "Install Emacs", MB_OKCANCEL | MB_ICONQUESTION))
result = MessageBox (NULL, msg, "Install Emacs", MB_OKCANCEL | MB_ICONQUESTION);
if (result != IDOK)
fprintf (stderr, "Install cancelled\n");
exit (1);
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