https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fafcd50a35a77f1dd1f46…
commit fafcd50a35a77f1dd1f4606a30dd4f5b6fe520bd
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Jun 28 22:32:28 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 28 23:34:08 2018 +0200
[SERVICES] Minor additions.
- Remove a redundant ScmWaitForLsa() call.
- Remove the LSA_RPC_SERVER_ACTIVE macro (just use directly the string).
- Improve output of DPRINTs.
---
base/system/services/services.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/base/system/services/services.c b/base/system/services/services.c
index 3b3342f350..bd7f24ccc0 100644
--- a/base/system/services/services.c
+++ b/base/system/services/services.c
@@ -24,7 +24,6 @@ int WINAPI RegisterServicesProcess(DWORD ServicesProcessId);
/* Defined in include/reactos/services/services.h */
// #define SCM_START_EVENT L"SvcctrlStartEvent_A3752DX"
#define SCM_AUTOSTARTCOMPLETE_EVENT L"SC_AutoStartComplete"
-#define LSA_RPC_SERVER_ACTIVE L"LSA_RPC_SERVER_ACTIVE"
BOOL ScmInitialize = FALSE;
BOOL ScmShutdown = FALSE;
@@ -85,10 +84,10 @@ ScmLogEvent(DWORD dwEventId,
VOID
ScmWaitForLsa(VOID)
{
- HANDLE hEvent = CreateEventW(NULL, TRUE, FALSE, LSA_RPC_SERVER_ACTIVE);
+ HANDLE hEvent = CreateEventW(NULL, TRUE, FALSE, L"LSA_RPC_SERVER_ACTIVE");
if (hEvent == NULL)
{
- DPRINT1("Failed to create the notification event (Error %lu)\n",
GetLastError());
+ DPRINT1("Failed to create or open the notification event (Error
%lu)\n", GetLastError());
}
else
{
@@ -194,9 +193,6 @@ wWinMain(HINSTANCE hInstance,
goto done;
}
- /* Wait for the LSA server */
- ScmWaitForLsa();
-
/* Update the services database */
ScmGetBootAndSystemDriverState();