[SC] Fix comparison logic for the allowed user-defined service control code interval. Caught by contributor 'mudhead'.

CORE-14514
This commit is contained in:
Hermès Bélusca-Maïto 2018-03-31 16:35:19 +02:00
parent 536623950c
commit 2eb78afa7a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

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