From 3ae00f8827e95f75fc38663f1bed562bf0592dd0 Mon Sep 17 00:00:00 2001 From: hkosaka Date: Mon, 15 Jun 2015 18:34:10 +0900 Subject: [PATCH] Updated to have Windows' module_service return 0 or 1. --- pandora_agents/win32/windows/pandora_wmi.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandora_agents/win32/windows/pandora_wmi.cc b/pandora_agents/win32/windows/pandora_wmi.cc index c541d44745..e4763cc433 100644 --- a/pandora_agents/win32/windows/pandora_wmi.cc +++ b/pandora_agents/win32/windows/pandora_wmi.cc @@ -116,11 +116,8 @@ Pandora_Wmi::isServiceRunning (string service_name) { if (str_state == "Running") { retval = 1; } - else if (str_state == "Stopped") { - retval = 0; - } else { - retval = -1; + retval = 0; } dhFreeString (state);