Robert Shearman : ntdll: Fix size check for NtQueryInformationToken( TokenGroups).
Module: wine Branch: refs/heads/master Commit: e52e4978b2ae14dcc57ca843801a5f8fb6fc9b83 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e52e4978b2ae14dcc57ca843... Author: Robert Shearman <rob(a)codeweavers.com> Date: Wed May 3 14:46:17 2006 +0100 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 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index 6b6cccf..5ee757d 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;
participants (1)
-
Alexandre Julliard