Module: wine Branch: refs/heads/master Commit: 409c6dc7b00a8ea6e1321d7f00b032bfe37711d7 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=409c6dc7b00a8ea6e1321d7f...
Author: James Hawkins truiken@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) {