mirror of
https://github.com/reactos/reactos.git
synced 2025-05-10 12:23:25 +00:00
[SERVICES] Do not try to start lsass.exe as a service.
Starting the security services (samss, netlogon, etc) requires special code in services.exe and lsasrv.dll.
This commit is contained in:
parent
71408b531c
commit
b03d2b4d65
1 changed files with 20 additions and 12 deletions
|
@ -1852,18 +1852,26 @@ ScmStartUserModeService(PSERVICE Service,
|
|||
StartupInfo.lpDesktop = L"WinSta0\\Default";
|
||||
}
|
||||
|
||||
Result = CreateProcessW(NULL,
|
||||
Service->lpImage->pszImagePath,
|
||||
NULL,
|
||||
NULL,
|
||||
FALSE,
|
||||
CREATE_UNICODE_ENVIRONMENT | DETACHED_PROCESS | CREATE_SUSPENDED,
|
||||
lpEnvironment,
|
||||
NULL,
|
||||
&StartupInfo,
|
||||
&ProcessInformation);
|
||||
if (!Result)
|
||||
dwError = GetLastError();
|
||||
if (wcsstr(Service->lpImage->pszImagePath, L"\\system32\\lsass.exe") == NULL)
|
||||
{
|
||||
Result = CreateProcessW(NULL,
|
||||
Service->lpImage->pszImagePath,
|
||||
NULL,
|
||||
NULL,
|
||||
FALSE,
|
||||
CREATE_UNICODE_ENVIRONMENT | DETACHED_PROCESS | CREATE_SUSPENDED,
|
||||
lpEnvironment,
|
||||
NULL,
|
||||
&StartupInfo,
|
||||
&ProcessInformation);
|
||||
if (!Result)
|
||||
dwError = GetLastError();
|
||||
}
|
||||
else
|
||||
{
|
||||
Result = TRUE;
|
||||
dwError = ERROR_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
if (lpEnvironment)
|
||||
|
|
Loading…
Reference in a new issue