From 4d542fdfab745c92f12b5e1eb433aa0d315dd5fd Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Fri, 7 Nov 2008 19:10:39 +0000 Subject: [PATCH] - RSetServiceStatus: Don't return ERROR_INVALID_DATA when dwControlsAccepted = 0. Services can and will do this, for example when dwCurrentState is SERVICE_START_PENDING. See bug #3817 for more info. svn path=/trunk/; revision=37246 --- reactos/base/system/services/rpcserver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/base/system/services/rpcserver.c b/reactos/base/system/services/rpcserver.c index 86302afa7c4..f72f866afbf 100644 --- a/reactos/base/system/services/rpcserver.c +++ b/reactos/base/system/services/rpcserver.c @@ -1041,8 +1041,7 @@ DWORD RSetServiceStatus( } /* Check accepted controls */ - if (lpServiceStatus->dwControlsAccepted == 0 || - lpServiceStatus->dwControlsAccepted & ~0xFF) + if (lpServiceStatus->dwControlsAccepted & ~0xFF) { DPRINT1("Invalid controls accepted!\n"); return ERROR_INVALID_DATA;