Commit 7c648cb6 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ntdll: Fix SID data copy length.

parent b44eef70
...@@ -348,7 +348,7 @@ NTSTATUS WINAPI NtQueryInformationToken( ...@@ -348,7 +348,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
groups->GroupCount = tg->count; groups->GroupCount = tg->count;
memcpy( sids, (char *)buffer + non_sid_portion, memcpy( sids, (char *)buffer + non_sid_portion,
reply->user_len - non_sid_portion - FIELD_OFFSET( TOKEN_GROUPS, Groups[tg->count] )); reply->user_len - FIELD_OFFSET( TOKEN_GROUPS, Groups[tg->count] ));
for (i = 0; i < tg->count; i++) for (i = 0; i < tg->count; i++)
{ {
......
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