diff --git a/lib/daemonmgt_win.cpp b/lib/daemonmgt_win.cpp index 9e8809fbde..9a0bee99cc 100644 --- a/lib/daemonmgt_win.cpp +++ b/lib/daemonmgt_win.cpp @@ -48,12 +48,12 @@ bool is_daemon_installed() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; } @@ -90,12 +90,12 @@ bool is_daemon_starting() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; } @@ -132,12 +132,12 @@ bool is_daemon_running() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; } @@ -174,12 +174,12 @@ bool is_daemon_stopping() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; } @@ -216,12 +216,12 @@ bool is_daemon_stopped() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; } @@ -313,12 +313,12 @@ bool start_daemon() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; } @@ -411,12 +411,12 @@ bool stop_daemon() } } - if (schSCManager) - CloseServiceHandle(schSCManager); - if (schService) CloseServiceHandle(schService); + if (schSCManager) + CloseServiceHandle(schSCManager); + return bRetVal; }