mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[WINLOGON] Optimize StartLsass and StartServicesManager (#9016)
Optimize for speed. JIRA issue: N/A Do not initialize the STARTUPINFO member, which is already filled with zeros, with zeros, in StartLsass and StartServicesManager functions. Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
This commit is contained in:
committed by
GitHub
parent
99252d7f94
commit
4e2cca167d
@@ -5,7 +5,7 @@
|
||||
* PURPOSE: Logon
|
||||
* PROGRAMMERS: Thomas Weidenmueller (w3seek@users.sourceforge.net)
|
||||
* Filip Navara
|
||||
* Hervé Poussineau (hpoussin@reactos.org)
|
||||
* Hervé Poussineau (hpoussin@reactos.org)
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
@@ -46,23 +46,13 @@ static
|
||||
BOOL
|
||||
StartServicesManager(VOID)
|
||||
{
|
||||
STARTUPINFOW StartupInfo;
|
||||
STARTUPINFOW StartupInfo = { sizeof(StartupInfo) };
|
||||
PROCESS_INFORMATION ProcessInformation;
|
||||
LPCWSTR ServiceString = L"services.exe";
|
||||
BOOL res;
|
||||
|
||||
/* Start the service control manager (services.exe) */
|
||||
ZeroMemory(&StartupInfo, sizeof(STARTUPINFOW));
|
||||
StartupInfo.cb = sizeof(StartupInfo);
|
||||
StartupInfo.lpReserved = NULL;
|
||||
StartupInfo.lpDesktop = NULL;
|
||||
StartupInfo.lpTitle = NULL;
|
||||
StartupInfo.dwFlags = 0;
|
||||
StartupInfo.cbReserved2 = 0;
|
||||
StartupInfo.lpReserved2 = 0;
|
||||
|
||||
TRACE("WL: Creating new process - %S\n", ServiceString);
|
||||
|
||||
res = CreateProcessW(ServiceString,
|
||||
NULL,
|
||||
NULL,
|
||||
@@ -94,23 +84,13 @@ static
|
||||
BOOL
|
||||
StartLsass(VOID)
|
||||
{
|
||||
STARTUPINFOW StartupInfo;
|
||||
STARTUPINFOW StartupInfo = { sizeof(StartupInfo) };
|
||||
PROCESS_INFORMATION ProcessInformation;
|
||||
LPCWSTR ServiceString = L"lsass.exe";
|
||||
BOOL res;
|
||||
|
||||
/* Start the local security authority subsystem (lsass.exe) */
|
||||
ZeroMemory(&StartupInfo, sizeof(STARTUPINFOW));
|
||||
StartupInfo.cb = sizeof(StartupInfo);
|
||||
StartupInfo.lpReserved = NULL;
|
||||
StartupInfo.lpDesktop = NULL;
|
||||
StartupInfo.lpTitle = NULL;
|
||||
StartupInfo.dwFlags = 0;
|
||||
StartupInfo.cbReserved2 = 0;
|
||||
StartupInfo.lpReserved2 = 0;
|
||||
|
||||
TRACE("WL: Creating new process - %S\n", ServiceString);
|
||||
|
||||
res = CreateProcessW(ServiceString,
|
||||
NULL,
|
||||
NULL,
|
||||
|
||||
Reference in New Issue
Block a user