Commit 409c6dc7 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

advapi32: Get the token type in ImpersonateLoggedOnUser.

parent ce58c358
......@@ -1675,13 +1675,16 @@ ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel)
*/
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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment