[SERVICES] Allow CreateService to create an interactive service under the LocalSystem...
authorMark Jansen <mark.jansen@reactos.org>
Fri, 1 Sep 2017 18:27:40 +0000 (18:27 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Fri, 1 Sep 2017 18:27:40 +0000 (18:27 +0000)
MSDN stated that this is allowed, and this fixes VMWare Horizon setup not working.
CORE-13434

svn path=/trunk/; revision=75730

reactos/base/system/services/rpcserver.c

index a3c44a1..3465d4d 100644 (file)
@@ -2192,7 +2192,11 @@ DWORD RCreateServiceW(
     if ((dwServiceType == (SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS)) &&
         (lpServiceStartName))
     {
-        return ERROR_INVALID_PARAMETER;
+        /* We allow LocalSystem to run interactive. */
+        if (wcsicmp(lpServiceStartName, L"LocalSystem"))
+        {
+            return ERROR_INVALID_PARAMETER;
+        }
     }
 
     if (lpdwTagId && (!lpLoadOrderGroup || !*lpLoadOrderGroup))