diff options
| author | Geoff Voelker | 1998-07-21 04:00:21 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1998-07-21 04:00:21 +0000 |
| commit | 59ee44271effbeca3f094a6bea50455e6c8214dc (patch) | |
| tree | 24b9be8fa5060a460906077441cfb90d4080c938 /nt | |
| parent | 9dda7cad50d96e90033af3ac78c3e45c6cdb45e6 (diff) | |
| download | emacs-59ee44271effbeca3f094a6bea50455e6c8214dc.tar.gz emacs-59ee44271effbeca3f094a6bea50455e6c8214dc.zip | |
(main): Explicitly check result of message box for OK.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/addpm.c | 5 |
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); |