[MSGINA] Close the user token in WlxLogoff
authorEric Kohl <eric.kohl@reactos.org>
Tue, 22 May 2018 14:32:10 +0000 (16:32 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 22 May 2018 14:32:10 +0000 (16:32 +0200)
dll/win32/msgina/msgina.c
dll/win32/msgina/stubs.c

index 8f6c3a9..c01c754 100644 (file)
@@ -1012,6 +1012,24 @@ WlxIsLogoffOk(
     return TRUE;
 }
 
+
+/*
+ * @implemented
+ */
+VOID WINAPI
+WlxLogoff(
+    PVOID pWlxContext)
+{
+    PGINA_CONTEXT pgContext = (PGINA_CONTEXT)pWlxContext;
+
+    TRACE("WlxLogoff(%p)\n", pWlxContext);
+
+    /* Close the user token */
+    CloseHandle(pgContext->UserToken);
+    pgContext->UserToken = NULL;
+}
+
+
 BOOL WINAPI
 DllMain(
     IN HINSTANCE hinstDLL,
index 69921cf..9b7c0af 100644 (file)
@@ -25,19 +25,6 @@ WlxIsLockOk(
 }
 
 
-/*
- * @unimplemented
- */
-VOID WINAPI
-WlxLogoff(
-    PVOID pWlxContext)
-{
-    UNREFERENCED_PARAMETER(pWlxContext);
-
-    UNIMPLEMENTED;
-}
-
-
 /*
  * @unimplemented
  */