mirror of
https://github.com/reactos/reactos.git
synced 2025-05-11 13:27:47 +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,6 +1852,8 @@ ScmStartUserModeService(PSERVICE Service,
|
||||||
StartupInfo.lpDesktop = L"WinSta0\\Default";
|
StartupInfo.lpDesktop = L"WinSta0\\Default";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wcsstr(Service->lpImage->pszImagePath, L"\\system32\\lsass.exe") == NULL)
|
||||||
|
{
|
||||||
Result = CreateProcessW(NULL,
|
Result = CreateProcessW(NULL,
|
||||||
Service->lpImage->pszImagePath,
|
Service->lpImage->pszImagePath,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -1865,6 +1867,12 @@ ScmStartUserModeService(PSERVICE Service,
|
||||||
if (!Result)
|
if (!Result)
|
||||||
dwError = GetLastError();
|
dwError = GetLastError();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Result = TRUE;
|
||||||
|
dwError = ERROR_SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (lpEnvironment)
|
if (lpEnvironment)
|
||||||
DestroyEnvironmentBlock(lpEnvironment);
|
DestroyEnvironmentBlock(lpEnvironment);
|
||||||
|
|
Loading…
Reference in a new issue