Add a token group needed by iPodService in iTunes

Aric Stewart aric at codeweavers.com
Tue Aug 17 11:54:10 CDT 2004


Add handling of TokenPrimaryGroup
-------------- next part --------------
Index: dlls/ntdll/nt.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/nt.c,v
retrieving revision 1.63
diff -u -w -r1.63 nt.c
--- dlls/ntdll/nt.c	6 Jul 2004 19:42:30 -0000	1.63
+++ dlls/ntdll/nt.c	17 Aug 2004 16:52:40 -0000
@@ -257,6 +257,19 @@
                                          &(tgroups->Groups->Sid));
         }
         break;
+    case TokenPrimaryGroup:
+        if (tokeninfo)
+        {
+            TOKEN_PRIMARY_GROUP *tgroup = tokeninfo;
+            SID_IDENTIFIER_AUTHORITY sid = {SECURITY_NT_AUTHORITY};
+            RtlAllocateAndInitializeSid( &sid,
+                                         2,
+                                         SECURITY_BUILTIN_DOMAIN_RID,
+                                         DOMAIN_ALIAS_RID_ADMINS,
+                                         0, 0, 0, 0, 0, 0,
+                                         &(tgroup->PrimaryGroup));
+        }
+        break;
     case TokenPrivileges:
         if (tokeninfo)
         {


More information about the wine-patches mailing list