https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bab4d87ac824b5317d1a5…
commit bab4d87ac824b5317d1a520da63643103a620c85
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Tue May 22 16:32:10 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Tue May 22 16:32:10 2018 +0200
[MSGINA] Close the user token in WlxLogoff
---
dll/win32/msgina/msgina.c | 18 ++++++++++++++++++
dll/win32/msgina/stubs.c | 13 -------------
2 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/dll/win32/msgina/msgina.c b/dll/win32/msgina/msgina.c
index 8f6c3a905a..c01c75451b 100644
--- a/dll/win32/msgina/msgina.c
+++ b/dll/win32/msgina/msgina.c
@@ -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,
diff --git a/dll/win32/msgina/stubs.c b/dll/win32/msgina/stubs.c
index 69921cff92..9b7c0afe16 100644
--- a/dll/win32/msgina/stubs.c
+++ b/dll/win32/msgina/stubs.c
@@ -25,19 +25,6 @@ WlxIsLockOk(
}
-/*
- * @unimplemented
- */
-VOID WINAPI
-WlxLogoff(
- PVOID pWlxContext)
-{
- UNREFERENCED_PARAMETER(pWlxContext);
-
- UNIMPLEMENTED;
-}
-
-
/*
* @unimplemented
*/