Commit 1cd222b4 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ntdll: The impersonation level in NtDuplicateToken should be taken from the…

ntdll: The impersonation level in NtDuplicateToken should be taken from the SecurityQualityOfService member of ObjectAttributes if present.
parent 4397e995
......@@ -61,6 +61,16 @@ NTSTATUS WINAPI NtDuplicateToken(
ImpersonationLevel, TokenType, NewToken);
dump_ObjectAttributes(ObjectAttributes);
if (ObjectAttributes && ObjectAttributes->SecurityQualityOfService)
{
SECURITY_QUALITY_OF_SERVICE *SecurityQOS = ObjectAttributes->SecurityQualityOfService;
TRACE("ObjectAttributes->SecurityQualityOfService = {%d, %d, %d, %s}\n",
SecurityQOS->Length, SecurityQOS->ImpersonationLevel,
SecurityQOS->ContextTrackingMode,
SecurityQOS->EffectiveOnly ? "TRUE" : "FALSE");
ImpersonationLevel = SecurityQOS->ImpersonationLevel;
}
SERVER_START_REQ( duplicate_token )
{
req->handle = ExistingToken;
......
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