git://git.iain.cx/iain
/
nssm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0b03b
)
Compiler food.
author
Iain Patterson
<me@iain.cx>
Thu, 21 Apr 2016 09:18:53 +0000
(10:18 +0100)
committer
Iain Patterson
<me@iain.cx>
Thu, 21 Apr 2016 09:18:53 +0000
(10:18 +0100)
SetConsoleCtrlHandler() returns BOOL which is not bool.
process.cpp
patch
|
blob
|
history
diff --git
a/process.cpp
b/process.cpp
index
62a46af
..
1c6946a
100644
(file)
--- a/
process.cpp
+++ b/
process.cpp
@@
-241,7
+241,7
@@
int kill_console(nssm_service_t *service, kill_t *k) {
\r
/* Ignore the event ourselves. */
\r
ret = 0;
\r
-
bool
ignored = SetConsoleCtrlHandler(0, TRUE);
\r
+
BOOL
ignored = SetConsoleCtrlHandler(0, TRUE);
\r
if (! ignored) {
\r
log_event(EVENTLOG_ERROR_TYPE, NSSM_EVENT_SETCONSOLECTRLHANDLER_FAILED, k->name, error_string(GetLastError()), 0);
\r
ret = 4;
\r