[MSGINA] Close the LSA handle on shutdown

This commit is contained in:
Eric Kohl 2018-05-22 17:31:20 +02:00
parent bab4d87ac8
commit 4c4c6e88b3
2 changed files with 23 additions and 15 deletions

View file

@ -1030,6 +1030,29 @@ WlxLogoff(
}
/*
* @implemented
*/
VOID WINAPI
WlxShutdown(
PVOID pWlxContext,
DWORD ShutdownType)
{
PGINA_CONTEXT pgContext = (PGINA_CONTEXT)pWlxContext;
NTSTATUS Status;
TRACE("WlxShutdown(%p %lx)\n", pWlxContext, ShutdownType);
/* Close the LSA handle */
pgContext->AuthenticationPackage = 0;
Status = LsaDeregisterLogonProcess(pgContext->LsaHandle);
if (!NT_SUCCESS(Status))
{
ERR("LsaDeregisterLogonProcess failed (Status 0x%08lx)\n", Status);
}
}
BOOL WINAPI
DllMain(
IN HINSTANCE hinstDLL,

View file

@ -25,21 +25,6 @@ WlxIsLockOk(
}
/*
* @unimplemented
*/
VOID WINAPI
WlxShutdown(
PVOID pWlxContext,
DWORD ShutdownType)
{
UNREFERENCED_PARAMETER(pWlxContext);
UNREFERENCED_PARAMETER(ShutdownType);
UNIMPLEMENTED;
}
/*
* @unimplemented
*/