summaryrefslogtreecommitdiff
path: root/nt/addpm.c
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1998-07-21 04:00:21 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1998-07-21 04:00:21 +0000
commit59ee44271effbeca3f094a6bea50455e6c8214dc (patch)
tree24b9be8fa5060a460906077441cfb90d4080c938 /nt/addpm.c
parent9dda7cad50d96e90033af3ac78c3e45c6cdb45e6 (diff)
downloademacs-59ee44271effbeca3f094a6bea50455e6c8214dc.tar.gz
(main): Explicitly check result of message box for OK.
Diffstat (limited to 'nt/addpm.c')
-rw-r--r--nt/addpm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nt/addpm.c b/nt/addpm.c
index 2e536df03a7..a916c87e6bf 100644
--- a/nt/addpm.c
+++ b/nt/addpm.c
@@ -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);