[SETUPAPI]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 5 Oct 2011 19:15:08 +0000 (19:15 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 5 Oct 2011 19:15:08 +0000 (19:15 +0000)
- Fix installation failure of services without a load order group

svn path=/trunk/; revision=54015

reactos/dll/win32/setupapi/install.c

index 5a6ad6c..839b66c 100644 (file)
@@ -1814,6 +1814,10 @@ static BOOL InstallOneService(
     GetLineText(hInf, ServiceSection, DescriptionKey, &Description);
     GetLineText(hInf, ServiceSection, DependenciesKey, &Dependencies);
 
+    /* If there is no group, we must not request a tag */
+    if (!LoadOrderGroup || !*LoadOrderGroup)
+        useTag = FALSE;
+
     hService = OpenServiceW(
         hSCManager,
         ServiceName,