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
59ee4427
Commit
59ee4427
authored
Jul 21, 1998
by
Geoff Voelker
Browse files
(main): Explicitly check result of message box for OK.
parent
9dda7cad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
nt/addpm.c
nt/addpm.c
+4
-1
No files found.
nt/addpm.c
View file @
59ee4427
...
...
@@ -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
);
...
...
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