mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
ntdll: Fix the formatting of the get_token_groups request for 64-bit.
This commit is contained in:
parent
05beb0daed
commit
2e2f6af0de
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
|
|||
struct token_groups *tg = buffer;
|
||||
unsigned int *attr = (unsigned int *)(tg + 1);
|
||||
ULONG i;
|
||||
const int non_sid_portion = (sizeof(struct token_groups) + tg->count * sizeof(unsigned long));
|
||||
const int non_sid_portion = (sizeof(struct token_groups) + tg->count * sizeof(unsigned int));
|
||||
SID *sids = (SID *)((char *)tokeninfo + FIELD_OFFSET( TOKEN_GROUPS, Groups[tg->count] ));
|
||||
ULONG needed_bytes = FIELD_OFFSET( TOKEN_GROUPS, Groups[tg->count] ) +
|
||||
reply->user_len - non_sid_portion;
|
||||
|
|
Loading…
Reference in a new issue