[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
This commit is contained in:
Mark Jansen
2017-09-01 18:27:40 +00:00
parent bf14a6ac69
commit 87ad6ca5ef
+5 -1
View 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))