aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Voelker1998-07-21 04:00:21 +0000
committerGeoff Voelker1998-07-21 04:00:21 +0000
commit59ee44271effbeca3f094a6bea50455e6c8214dc (patch)
tree24b9be8fa5060a460906077441cfb90d4080c938
parent9dda7cad50d96e90033af3ac78c3e45c6cdb45e6 (diff)
downloademacs-59ee44271effbeca3f094a6bea50455e6c8214dc.tar.gz
emacs-59ee44271effbeca3f094a6bea50455e6c8214dc.zip
(main): Explicitly check result of message box for OK.
-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)
152 152
153 /* Tell user what we are going to do. */ 153 /* Tell user what we are going to do. */
154 { 154 {
155 int result;
156
155 char msg[ MAX_PATH ]; 157 char msg[ MAX_PATH ];
156 sprintf (msg, "Install Emacs at %s?\n", emacs_path); 158 sprintf (msg, "Install Emacs at %s?\n", emacs_path);
157 if (!MessageBox (NULL, msg, "Install Emacs", MB_OKCANCEL | MB_ICONQUESTION)) 159 result = MessageBox (NULL, msg, "Install Emacs", MB_OKCANCEL | MB_ICONQUESTION);
160 if (result != IDOK)
158 { 161 {
159 fprintf (stderr, "Install cancelled\n"); 162 fprintf (stderr, "Install cancelled\n");
160 exit (1); 163 exit (1);