Author: hbelusca
Date: Sat Mar 16 13:50:24 2013
New Revision: 58516
URL:
http://svn.reactos.org/svn/reactos?rev=58516&view=rev
Log:
[SERVICES]
- Precise the purpose of lock.c
- Add an informative comment.
No code changes.
Modified:
trunk/reactos/base/system/services/driver.c
trunk/reactos/base/system/services/lock.c
Modified: trunk/reactos/base/system/services/driver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/drive…
==============================================================================
--- trunk/reactos/base/system/services/driver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/driver.c [iso-8859-1] Sat Mar 16 13:50:24 2013
@@ -141,13 +141,11 @@
if (lpService->Status.dwServiceType == SERVICE_KERNEL_DRIVER)
{
- RtlInitUnicodeString(&DirName,
- L"\\Driver");
- }
- else
- {
- RtlInitUnicodeString(&DirName,
- L"\\FileSystem");
+ RtlInitUnicodeString(&DirName, L"\\Driver");
+ }
+ else // if (lpService->Status.dwServiceType == SERVICE_FILE_SYSTEM_DRIVER)
+ {
+ RtlInitUnicodeString(&DirName, L"\\FileSystem");
}
InitializeObjectAttributes(&ObjectAttributes,
Modified: trunk/reactos/base/system/services/lock.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/lock.…
==============================================================================
--- trunk/reactos/base/system/services/lock.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/lock.c [iso-8859-1] Sat Mar 16 13:50:24 2013
@@ -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;