From abf1110ae81f6caa4e9164719439ddbd12e68dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 16 Mar 2013 13:50:24 +0000 Subject: [PATCH] [SERVICES] - Precise the purpose of lock.c - Add an informative comment. No code changes. svn path=/trunk/; revision=58516 --- reactos/base/system/services/driver.c | 8 +++----- reactos/base/system/services/lock.c | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/reactos/base/system/services/driver.c b/reactos/base/system/services/driver.c index 8526b663211..a22ed98820c 100644 --- a/reactos/base/system/services/driver.c +++ b/reactos/base/system/services/driver.c @@ -141,13 +141,11 @@ ScmGetDriverStatus(PSERVICE lpService, if (lpService->Status.dwServiceType == SERVICE_KERNEL_DRIVER) { - RtlInitUnicodeString(&DirName, - L"\\Driver"); + RtlInitUnicodeString(&DirName, L"\\Driver"); } - else + else // if (lpService->Status.dwServiceType == SERVICE_FILE_SYSTEM_DRIVER) { - RtlInitUnicodeString(&DirName, - L"\\FileSystem"); + RtlInitUnicodeString(&DirName, L"\\FileSystem"); } InitializeObjectAttributes(&ObjectAttributes, diff --git a/reactos/base/system/services/lock.c b/reactos/base/system/services/lock.c index 1f27d80dc8f..6993e3dcb72 100644 --- a/reactos/base/system/services/lock.c +++ b/reactos/base/system/services/lock.c @@ -2,7 +2,7 @@ * PROJECT: ReactOS Service Control Manager * LICENSE: GPL - See COPYING in the top level directory * FILE: base/system/services/lock.c - * PURPOSE: Service lock functions + * PURPOSE: User-side Services Start Serialization Lock functions * COPYRIGHT: Copyright 2012 Hermès Bélusca */ @@ -16,6 +16,7 @@ /* GLOBALS *******************************************************************/ +/* The unique user service start lock of the SCM */ static PSTART_LOCK pServiceStartLock = NULL;