https://git.reactos.org/?p=reactos.git;a=commitdiff;h=99d776894ac046145d996…
commit 99d776894ac046145d99646a88acba80494ffc15
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sun May 16 17:18:29 2021 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Sun May 16 17:18:29 2021 +0200
[NTOS:SE] Capture the groups length when creating a token
The groups length is already returned by SeCaptureSidAndAttributesArray, it
doesn't make sense to not use it.
---
ntoskrnl/se/token.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/se/token.c b/ntoskrnl/se/token.c
index 01ec724933f..5e3e82d9ecd 100644
--- a/ntoskrnl/se/token.c
+++ b/ntoskrnl/se/token.c
@@ -4197,7 +4197,7 @@ NtCreateToken(
CapturedUser,
GroupCount,
CapturedGroups,
- 0, // FIXME: Should capture
+ GroupsLength,
PrivilegeCount,
CapturedPrivileges,
CapturedOwnerSid,