Skip to content
Snippets Groups Projects
Commit 6c5d17af authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard
Browse files

wow64: In wow64_NtSetInformationToken forward TokenIntegrityLevel.

parent 08c0978f
No related branches found
No related tags found
No related merge requests found
......@@ -521,6 +521,18 @@ NTSTATUS WINAPI wow64_NtSetInformationToken( UINT *args )
switch (class)
{
case TokenIntegrityLevel: /* TOKEN_MANDATORY_LABEL */
if (len >= sizeof(TOKEN_MANDATORY_LABEL32))
{
TOKEN_MANDATORY_LABEL32 *label32 = ptr;
TOKEN_MANDATORY_LABEL label;
label.Label.Sid = ULongToPtr( label32->Label.Sid );
label.Label.Attributes = label32->Label.Attributes;
return NtSetInformationToken( handle, class, &label, sizeof(label) );
}
else return STATUS_INFO_LENGTH_MISMATCH;
case TokenSessionId: /* ULONG */
return NtSetInformationToken( handle, class, ptr, len );
......
......@@ -367,6 +367,11 @@ typedef struct
DWORD Attributes;
} SID_AND_ATTRIBUTES32;
typedef struct
{
SID_AND_ATTRIBUTES32 Label;
} TOKEN_MANDATORY_LABEL32;
typedef struct
{
ULONG DefaultDacl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment