Updated to have Windows' module_service return 0 or 1.
This commit is contained in:
parent
b0dbffd0c1
commit
3ae00f8827
|
@ -116,11 +116,8 @@ Pandora_Wmi::isServiceRunning (string service_name) {
|
||||||
if (str_state == "Running") {
|
if (str_state == "Running") {
|
||||||
retval = 1;
|
retval = 1;
|
||||||
}
|
}
|
||||||
else if (str_state == "Stopped") {
|
|
||||||
retval = 0;
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
retval = -1;
|
retval = 0;
|
||||||
}
|
}
|
||||||
dhFreeString (state);
|
dhFreeString (state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue