Author: ekohl
Date: Thu Oct 29 22:23:37 2015
New Revision: 69733
URL:
http://svn.reactos.org/svn/reactos?rev=69733&view=rev
Log:
[LSASRV]
Call LsapRmDeleteLogonSession from LsapDeleteLogonSession.
Modified:
trunk/reactos/dll/win32/lsasrv/session.c
Modified: trunk/reactos/dll/win32/lsasrv/session.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/session.c…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/session.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/session.c [iso-8859-1] Thu Oct 29 22:23:37 2015
@@ -105,6 +105,7 @@
TRACE("LsapCreateLogonSession(<0x%lx,0x%lx>)\n",
LogonId->HighPart, LogonId->LowPart);
+ /* Tell ntoskrnl to create a new logon session */
Status = LsapRmCreateLogonSession(LogonId);
if (!NT_SUCCESS(Status))
{
@@ -125,6 +126,7 @@
LsapDeleteLogonSession(IN PLUID LogonId)
{
PLSAP_LOGON_SESSION Session;
+ NTSTATUS Status;
TRACE("LsapDeleteLogonSession(%p)\n", LogonId);
@@ -132,6 +134,14 @@
Session = LsapGetLogonSession(LogonId);
if (Session == NULL)
return STATUS_NO_SUCH_LOGON_SESSION;
+
+ TRACE("LsapDeleteLogonSession(<0x%lx,0x%lx>)\n",
+ LogonId->HighPart, LogonId->LowPart);
+
+ /* Tell ntoskrnl to delete the logon session */
+ Status = LsapRmDeleteLogonSession(LogonId);
+ if (!NT_SUCCESS(Status))
+ return Status;
/* Remove the session entry from the list */
RemoveEntryList(&Session->Entry);