Merge pull request #30 from hkosaka/windows_module_service_returns_boolean

Updated to have Windows' module_service return 0 or 1 (no other values).
This commit is contained in:
Hirofumi Kosaka 2015-06-15 19:22:30 +09:00
commit 9898fb8a94
1 changed files with 1 additions and 4 deletions

View File

@ -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);