Commit in reactos/ntoskrnl/se on MAIN
token.c+2-31.40 -> 1.41
Copy AuthenticationId from existing token when duplicating a token

reactos/ntoskrnl/se
token.c 1.40 -> 1.41
diff -u -r1.40 -r1.41
--- token.c	10 Aug 2004 20:30:35 -0000	1.40
+++ token.c	10 Aug 2004 21:11:20 -0000	1.41
@@ -1,4 +1,4 @@
-/* $Id: token.c,v 1.40 2004/08/10 20:30:35 gvg Exp $
+/* $Id: token.c,v 1.41 2004/08/10 21:11:20 gvg Exp $
  *
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS kernel
@@ -179,8 +179,7 @@
   AccessToken->TokenInUse = 0;
   AccessToken->TokenType  = TokenType;
   AccessToken->ImpersonationLevel = Level;
-  AccessToken->AuthenticationId.LowPart = SYSTEM_LUID;
-  AccessToken->AuthenticationId.HighPart = 0;
+  RtlCopyLuid(&AccessToken->AuthenticationId, &Token->AuthenticationId);
 
   AccessToken->TokenSource.SourceIdentifier.LowPart = Token->TokenSource.SourceIdentifier.LowPart;
   AccessToken->TokenSource.SourceIdentifier.HighPart = Token->TokenSource.SourceIdentifier.HighPart;
CVSspam 0.2.8