mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 18:05:46 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue