mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[SC] Fix comparison logic for the allowed user-defined service control code interval. Caught by contributor 'mudhead'.
CORE-14514
This commit is contained in:
parent
536623950c
commit
2eb78afa7a
|
@ -177,7 +177,7 @@ ScControl(LPCTSTR Server, // remote machine name
|
|||
else
|
||||
{
|
||||
ControlCode = _ttoi(ServiceArgs[0]);
|
||||
if ((ControlCode < 128) && (ControlCode > 255))
|
||||
if ((ControlCode < 128) || (ControlCode > 255))
|
||||
ControlCode = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue