James Hawkins : advapi32: Get the token type in
ImpersonateLoggedOnUser.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jul 7 07:56:02 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 409c6dc7b00a8ea6e1321d7f00b032bfe37711d7
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=409c6dc7b00a8ea6e1321d7f00b032bfe37711d7
Author: James Hawkins <truiken at gmail.com>
Date: Wed Jul 5 19:55:02 2006 -0700
advapi32: Get the token type in ImpersonateLoggedOnUser.
---
dlls/advapi32/security.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 0a78668..977bd61 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -1675,13 +1675,16 @@ ImpersonateSelf(SECURITY_IMPERSONATION_L
*/
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken)
{
+ DWORD size;
NTSTATUS Status;
HANDLE ImpersonationToken;
- TOKEN_TYPE Type = TokenImpersonation;
+ TOKEN_TYPE Type;
FIXME( "(%p)\n", hToken );
- /* FIXME: get token type */
+ if (!GetTokenInformation( hToken, TokenType, &Type,
+ sizeof(TOKEN_TYPE), &size ))
+ return FALSE;
if (Type == TokenPrimary)
{
More information about the wine-cvs
mailing list