Commit 94951803 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

MSDN states that DuplicateToken should create a new token with the

TOKEN_QUERY | TOKEN_IMPERSONATE rights, not 0.
parent ebb1aaee
......@@ -3129,8 +3129,9 @@ BOOL WINAPI DuplicateToken(
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
PHANDLE DuplicateTokenHandle )
{
return DuplicateTokenEx( ExistingTokenHandle, 0, NULL, ImpersonationLevel,
TokenImpersonation, DuplicateTokenHandle );
return DuplicateTokenEx( ExistingTokenHandle, TOKEN_IMPERSONATE | TOKEN_QUERY,
NULL, ImpersonationLevel, TokenImpersonation,
DuplicateTokenHandle );
}
BOOL WINAPI EnumDependentServicesA(
......
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