Commit in reactos on MAIN
include/rosrtl/priv.h+2-21.1 -> 1.2
lib/rosrtl/thread/priv.c+3-41.2 -> 1.3
+5-6
2 modified files
pass LUIDs to RosEnableThreadPrivileges()

reactos/include/rosrtl
priv.h 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- priv.h	11 Aug 2004 08:28:13 -0000	1.1
+++ priv.h	11 Aug 2004 08:48:20 -0000	1.2
@@ -1,4 +1,4 @@
-/* $Id: priv.h,v 1.1 2004/08/11 08:28:13 weiden Exp $
+/* $Id: priv.h,v 1.2 2004/08/11 08:48:20 weiden Exp $
  */
 
 #ifndef ROSRTL_SEC_H__
@@ -10,7 +10,7 @@
 #endif
 
 BOOL
-RosEnableThreadPrivileges(HANDLE *hToken, DWORD *Privileges, DWORD PrivilegeCount);
+RosEnableThreadPrivileges(HANDLE *hToken, LUID *Privileges, DWORD PrivilegeCount);
 BOOL
 RosResetThreadPrivileges(HANDLE hToken);
 

reactos/lib/rosrtl/thread
priv.c 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- priv.c	11 Aug 2004 08:32:48 -0000	1.2
+++ priv.c	11 Aug 2004 08:48:20 -0000	1.3
@@ -6,14 +6,14 @@
  * Utility to copy and enable thread privileges
  *
  * OUT HANDLE *hPreviousToken -> Pointer to a variable that receives the previous token handle
- * IN  DWORD *Privileges      -> Points to an array of privileges to be enabled
+ * IN  LUID *Privileges       -> Points to an array of privileges to be enabled
  * IN  DWORD PrivilegeCount   -> Number of the privileges in the array
  *
  * Returns TRUE on success and copies the thread token (if any) handle that was active before impersonation.
  */
 BOOL
 RosEnableThreadPrivileges(HANDLE *hPreviousToken,
-                          DWORD *Privileges,
+                          LUID *Privileges,
                           DWORD PrivilegeCount)
 {
   HANDLE hToken;
@@ -55,8 +55,7 @@
     privs->PrivilegeCount = PrivilegeCount;
     for(la = privs->Privileges; PrivilegeCount-- > 0; la++)
     {
-      la->Luid.LowPart = *(Privileges++);
-      la->Luid.HighPart = 0;
+      la->Luid = *(Privileges++);
       la->Attributes = SE_PRIVILEGE_ENABLED;
     }
     
CVSspam 0.2.8