Compiler food.
authorIain Patterson <me@iain.cx>
Thu, 21 Apr 2016 09:18:53 +0000 (10:18 +0100)
committerIain Patterson <me@iain.cx>
Thu, 21 Apr 2016 09:18:53 +0000 (10:18 +0100)
SetConsoleCtrlHandler() returns BOOL which is not bool.

process.cpp

index 62a46af..1c6946a 100644 (file)
@@ -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