mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[LSASS] Initialize SAM before starting the security services
We need to initialize SAM before the security services get started, otherwise we will have a running SamSs service although SAM is not initialized at that time. This is no good.
This commit is contained in:
parent
26e1afaffc
commit
4a230d8341
1 changed files with 10 additions and 10 deletions
|
@ -50,7 +50,7 @@ wWinMain(IN HINSTANCE hInstance,
|
|||
/* Make us critical */
|
||||
RtlSetProcessIsCritical(TRUE, NULL, TRUE);
|
||||
|
||||
/* Initialize the LSA server DLL. */
|
||||
/* Initialize the LSA server DLL */
|
||||
Status = LsapInitLsa();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -58,15 +58,7 @@ wWinMain(IN HINSTANCE hInstance,
|
|||
goto ByeBye;
|
||||
}
|
||||
|
||||
/* Start the Netlogon service. */
|
||||
Status = ServiceInit();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status);
|
||||
goto ByeBye;
|
||||
}
|
||||
|
||||
/* Initialize the SAM server DLL. */
|
||||
/* Initialize the SAM server DLL */
|
||||
Status = SamIInitialize();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -74,6 +66,14 @@ wWinMain(IN HINSTANCE hInstance,
|
|||
goto ByeBye;
|
||||
}
|
||||
|
||||
/* Start the security services */
|
||||
Status = ServiceInit();
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("ServiceInit() failed (Status 0x%08lX)\n", Status);
|
||||
goto ByeBye;
|
||||
}
|
||||
|
||||
/* FIXME: More initialization */
|
||||
|
||||
DPRINT(" Done...\n");
|
||||
|
|
Loading…
Reference in a new issue