From 974f97cce5973df9351e7c78a30993a143abb73d Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 3 Dec 2016 09:33:03 +0000 Subject: [PATCH] =?UTF-8?q?[SERVICES]=20-=20Get=20rid=20of=20the=20obsolet?= =?UTF-8?q?e=20USE=5FSERVICE=5FSTART=5FPENDING=20option.=20-=20Services=20?= =?UTF-8?q?do=20not=20accept=20any=20command=20when=20they=20are=20in=20SE?= =?UTF-8?q?RVICE=5FSTART=5FPENDING=20state.=20Patch=20by=20Herm=C3=A8s=20B?= =?UTF-8?q?=C3=89LUSCA=20-=20MA=C3=8FTO.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=73416 --- reactos/base/system/services/database.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/reactos/base/system/services/database.c b/reactos/base/system/services/database.c index 5a6f2105d45..ef37effefda 100644 --- a/reactos/base/system/services/database.c +++ b/reactos/base/system/services/database.c @@ -19,12 +19,6 @@ #define NDEBUG #include -/* - * Uncomment the line below to start services - * using the SERVICE_START_PENDING state. - */ -#define USE_SERVICE_START_PENDING - /* * Uncomment the line below to use asynchronous IO operations * on the service control pipes. @@ -1766,8 +1760,8 @@ ScmLoadService(PSERVICE Service, dwError = ScmLoadDriver(Service); if (dwError == ERROR_SUCCESS) { - Service->Status.dwControlsAccepted = SERVICE_ACCEPT_STOP; Service->Status.dwCurrentState = SERVICE_RUNNING; + Service->Status.dwControlsAccepted = SERVICE_ACCEPT_STOP; } } else // if (Service->Status.dwServiceType & (SERVICE_WIN32 | SERVICE_INTERACTIVE_PROCESS)) @@ -1779,11 +1773,8 @@ ScmLoadService(PSERVICE Service, dwError = ScmStartUserModeService(Service, argc, argv); if (dwError == ERROR_SUCCESS) { -#ifdef USE_SERVICE_START_PENDING Service->Status.dwCurrentState = SERVICE_START_PENDING; -#else - Service->Status.dwCurrentState = SERVICE_RUNNING; -#endif + Service->Status.dwControlsAccepted = 0; } else {