- RChangeServiceConfigA/W: Update the service group properly and fix the ANSI to...
[reactos.git] / reactos / base / system / services / groupdb.c
index a18f8f8..fdd40fd 100644 (file)
@@ -30,6 +30,15 @@ ScmSetServiceGroup(PSERVICE lpService,
     PLIST_ENTRY GroupEntry;
     PSERVICE_GROUP lpGroup;
 
+    DPRINT("ScmSetServiceGroup(%S)\n", lpGroupName);
+
+    if (lpService->lpGroup != NULL)
+    {
+        lpService->lpGroup->dwRefCount--;
+
+        /* FIXME: What do we have to do when dwRefCount is 0? */
+    }
+
     GroupEntry = GroupListHead.Flink;
     while (GroupEntry != &GroupListHead)
     {