Author: mjansen
Date: Fri Sep  1 18:27:40 2017
New Revision: 75730

URL: http://svn.reactos.org/svn/reactos?rev=75730&view=rev
Log:
[SERVICES] Allow CreateService to create an interactive service under the 
LocalSystem account.
MSDN stated that this is allowed, and this fixes VMWare Horizon setup not 
working.
CORE-13434

Modified:
    trunk/reactos/base/system/services/rpcserver.c

Modified: trunk/reactos/base/system/services/rpcserver.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcserver.c?rev=75730&r1=75729&r2=75730&view=diff
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c      [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c      [iso-8859-1] Fri Sep  1 
18:27:40 2017
@@ -2192,7 +2192,11 @@
     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))


Reply via email to