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

Alexandre Julliard julliard at winehq.org
Fri Jul 3 09:31:13 CDT 2009


Module: wine
Branch: master
Commit: 2e2f6af0dec4075795709d906de06efa7c5e8975
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2e2f6af0dec4075795709d906de06efa7c5e8975

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jul  3 13:58:09 2009 +0200

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

---

 dlls/ntdll/nt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 89d796d..c457028 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -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;




More information about the wine-cvs mailing list