Author: hpoussin
Date: Sat Jun 3 15:47:04 2006
New Revision: 22191
URL:
http://svn.reactos.ru/svn/reactos?rev=22191&view=rev
Log:
Fix some little bugs
Modified:
trunk/reactos/base/system/services/database.c
trunk/reactos/base/system/services/groupdb.c
trunk/reactos/base/system/services/rpcserver.c
trunk/reactos/base/system/services/services.h
Modified: trunk/reactos/base/system/services/database.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/system/services/databa…
==============================================================================
--- trunk/reactos/base/system/services/database.c (original)
+++ trunk/reactos/base/system/services/database.c Sat Jun 3 15:47:04 2006
@@ -741,10 +741,10 @@
}
-static NTSTATUS
-ScmStartService(PSERVICE Service,
- PSERVICE_GROUP Group)
-{
+NTSTATUS
+ScmStartService(PSERVICE Service)
+{
+ PSERVICE_GROUP Group = Service->lpGroup;
NTSTATUS Status;
DPRINT("ScmStartService() called\n");
@@ -849,8 +849,7 @@
(CurrentService->dwTag == CurrentGroup->TagArray[i]))
{
CurrentService->ServiceVisited = TRUE;
- ScmStartService(CurrentService,
- CurrentGroup);
+ ScmStartService(CurrentService);
}
ServiceEntry = ServiceEntry->Flink;
@@ -868,8 +867,7 @@
(CurrentService->ServiceVisited == FALSE))
{
CurrentService->ServiceVisited = TRUE;
- ScmStartService(CurrentService,
- CurrentGroup);
+ ScmStartService(CurrentService);
}
ServiceEntry = ServiceEntry->Flink;
@@ -889,8 +887,7 @@
(CurrentService->ServiceVisited == FALSE))
{
CurrentService->ServiceVisited = TRUE;
- ScmStartService(CurrentService,
- NULL);
+ ScmStartService(CurrentService);
}
ServiceEntry = ServiceEntry->Flink;
@@ -907,8 +904,7 @@
(CurrentService->ServiceVisited == FALSE))
{
CurrentService->ServiceVisited = TRUE;
- ScmStartService(CurrentService,
- NULL);
+ ScmStartService(CurrentService);
}
ServiceEntry = ServiceEntry->Flink;
Modified: trunk/reactos/base/system/services/groupdb.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/system/services/groupd…
==============================================================================
--- trunk/reactos/base/system/services/groupdb.c (original)
+++ trunk/reactos/base/system/services/groupdb.c Sat Jun 3 15:47:04 2006
@@ -63,6 +63,7 @@
wcscpy(lpGroup->szGroupName, lpGroupName);
lpGroup->lpGroupName = lpGroup->szGroupName;
lpGroup->dwRefCount = 1;
+ lpService->lpGroup = lpGroup;
InsertTailList(&UnknownGroupListHead,
&lpGroup->GroupListEntry);
Modified: trunk/reactos/base/system/services/rpcserver.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/system/services/rpcser…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c (original)
+++ trunk/reactos/base/system/services/rpcserver.c Sat Jun 3 15:47:04 2006
@@ -1605,7 +1605,7 @@
LPQUERY_SERVICE_CONFIGW lpConfig;
LPWSTR lpStr;
- DPRINT1("ScmrQueryServiceConfigW() called\n");
+ DPRINT("ScmrQueryServiceConfigW() called\n");
if (ScmShutdown)
return ERROR_SHUTDOWN_IN_PROGRESS;
@@ -1725,7 +1725,7 @@
/* FIXME: Unlock the service database */
- DPRINT1("ScmrQueryServiceConfigW() done\n");
+ DPRINT("ScmrQueryServiceConfigW() done\n");
return dwError;
}
@@ -1755,6 +1755,7 @@
DWORD dwError = ERROR_SUCCESS;
PSERVICE_HANDLE hSvc;
PSERVICE lpService = NULL;
+ NTSTATUS Status;
DPRINT1("ScmrStartServiceW() called\n");
@@ -1788,7 +1789,10 @@
if (lpService->bDeleted)
return ERROR_SERVICE_MARKED_FOR_DELETE;
- /* FIXME: Start the service */
+ /* Start the service */
+ Status = STATUS_SUCCESS; /* FIXME: ScmStartService(lpService); */
+ if (!NT_SUCCESS(Status))
+ return RtlNtStatusToDosError(Status);
return dwError;
}
Modified: trunk/reactos/base/system/services/services.h
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/system/services/servic…
==============================================================================
--- trunk/reactos/base/system/services/services.h (original)
+++ trunk/reactos/base/system/services/services.h Sat Jun 3 15:47:04 2006
@@ -121,7 +121,7 @@
/* services.c */
VOID PrintString(LPCSTR fmt, ...);
-
+NTSTATUS ScmStartService(PSERVICE Service);
/* EOF */