ntdll: Fix the formatting of the get_token_groups request for 64-bit.

This commit is contained in:
Alexandre Julliard 2009-07-03 13:58:09 +02:00
parent 05beb0daed
commit 2e2f6af0de
1 changed files with 1 additions and 1 deletions

View File

@ -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;