From: Eric Kohl Date: Tue, 22 May 2018 14:32:10 +0000 (+0200) Subject: [MSGINA] Close the user token in WlxLogoff X-Git-Tag: 0.4.11-dev~619 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=bab4d87ac824b5317d1a520da63643103a620c85 [MSGINA] Close the user token in WlxLogoff --- diff --git a/dll/win32/msgina/msgina.c b/dll/win32/msgina/msgina.c index 8f6c3a905aa..c01c75451bc 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 69921cff92a..9b7c0afe161 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 */