[LSASRV]
[reactos.git] / reactos / dll / win32 / lsasrv / session.c
index 90e0342..c915260 100644 (file)
@@ -105,6 +105,7 @@ LsapCreateLogonSession(IN PLUID LogonId)
     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 @@ NTAPI
 LsapDeleteLogonSession(IN PLUID LogonId)
 {
     PLSAP_LOGON_SESSION Session;
+    NTSTATUS Status;
 
     TRACE("LsapDeleteLogonSession(%p)\n", LogonId);
 
@@ -133,6 +135,14 @@ LsapDeleteLogonSession(IN PLUID 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);
     SessionCount--;