From: Hermès Bélusca-Maïto Date: Sat, 31 Mar 2018 14:35:19 +0000 (+0200) Subject: [SC] Fix comparison logic for the allowed user-defined service control code interval... X-Git-Tag: 0.4.9-RC~348 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=2eb78afa7a9aa28361a83e87bffb93bf85b69c57 [SC] Fix comparison logic for the allowed user-defined service control code interval. Caught by contributor 'mudhead'. CORE-14514 --- diff --git a/base/applications/sc/sc.c b/base/applications/sc/sc.c index c6230c48012..49cd5970295 100644 --- a/base/applications/sc/sc.c +++ b/base/applications/sc/sc.c @@ -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; }