From e52e4978b2ae14dcc57ca843801a5f8fb6fc9b83 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 3 May 2006 14:46:17 +0100 Subject: [PATCH] ntdll: Fix size check for NtQueryInformationToken(TokenGroups). For NtQueryInformationToken(TokenGroups), don't do a size check before the server call, as we don't know how many SIDs there are to return and hence the needed buffer size. --- dlls/ntdll/nt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index 6b6cccf42a8..5ee757d03fb 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -202,9 +202,6 @@ NTSTATUS WINAPI NtQueryInformationToken( switch (tokeninfoclass) { - case TokenGroups: - len = sizeof(TOKEN_GROUPS); - break; case TokenOwner: len = sizeof(TOKEN_OWNER) + sizeof(SID); break;