NtSetInformationThread() expects a pointer, not the handle itself
authorGé van Geldorp <ge@gse.nl>
Mon, 27 Sep 2004 20:04:53 +0000 (20:04 +0000)
committerGé van Geldorp <ge@gse.nl>
Mon, 27 Sep 2004 20:04:53 +0000 (20:04 +0000)
svn path=/trunk/; revision=11100

reactos/lib/advapi32/token/token.c

index ed6c32f..e76a2b0 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: token.c,v 1.13 2004/08/15 17:03:15 chorns Exp $
+/* $Id: token.c,v 1.14 2004/09/27 20:04:53 gvg Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -235,7 +235,7 @@ SetThreadToken (PHANDLE ThreadHandle,
 
   Status = NtSetInformationThread (hThread,
                                   ThreadImpersonationToken,
 
   Status = NtSetInformationThread (hThread,
                                   ThreadImpersonationToken,
-                                  TokenHandle,
+                                  &TokenHandle,
                                   sizeof(HANDLE));
   if (!NT_SUCCESS(Status))
     {
                                   sizeof(HANDLE));
   if (!NT_SUCCESS(Status))
     {