From 1b415c71692c9626c829df913490548bfef6c779 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Thu, 21 Apr 2016 10:18:53 +0100 Subject: [PATCH] Compiler food. SetConsoleCtrlHandler() returns BOOL which is not bool. --- process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.cpp b/process.cpp index 62a46af..1c6946a 100644 --- a/process.cpp +++ b/process.cpp @@ -241,7 +241,7 @@ int kill_console(nssm_service_t *service, kill_t *k) { /* Ignore the event ourselves. */ ret = 0; - bool ignored = SetConsoleCtrlHandler(0, TRUE); + BOOL ignored = SetConsoleCtrlHandler(0, TRUE); if (! ignored) { log_event(EVENTLOG_ERROR_TYPE, NSSM_EVENT_SETCONSOLECTRLHANDLER_FAILED, k->name, error_string(GetLastError()), 0); ret = 4; -- 2.7.4