From 87ad6ca5ef3341b087210ef756265ed9c30b2dd5 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Fri, 1 Sep 2017 18:27:40 +0000 Subject: [PATCH] [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 svn path=/trunk/; revision=75730 --- reactos/base/system/services/rpcserver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/base/system/services/rpcserver.c b/reactos/base/system/services/rpcserver.c index a3c44a1da6c..3465d4da307 100644 --- a/reactos/base/system/services/rpcserver.c +++ b/reactos/base/system/services/rpcserver.c @@ -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))