set SE_GROUP_ENABLED for TokenGroups query
John K. Hohm
jhohm at acm.org
Fri Aug 29 00:03:31 CDT 2003
Changelog:
John K. Hohm <jhohm at acm.org>
Set SE_GROUP_ENABLED in Attributes of Administrators SID during
NtQueryInformationToken for TokenGroups.
All MS NT versions set this, and my company's installer checks for it.
-------------- next part --------------
Index: dlls/ntdll/nt.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/nt.c,v
retrieving revision 1.53
diff -u -r1.53 nt.c
--- dlls/ntdll/nt.c 24 Jul 2003 00:07:00 -0000 1.53
+++ dlls/ntdll/nt.c 29 Aug 2003 04:56:45 -0000
@@ -354,6 +354,7 @@
/* we need to show admin privileges ! */
tgroups->GroupCount = 1;
+ tgroups->Groups->Attributes = SE_GROUP_ENABLED;
RtlAllocateAndInitializeSid( &sid,
2,
SECURITY_BUILTIN_DOMAIN_RID,
More information about the wine-patches
mailing list