mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
wow64: In wow64_NtSetInformationToken forward TokenIntegrityLevel.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56725
This commit is contained in:
parent
08c0978f0b
commit
6c5d17af07
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue