- Fixed the third passed parameter to NtSetInformationThread call in ImpersonateLoggedOnUser.

svn path=/trunk/; revision=9500
This commit is contained in:
Filip Navara 2004-05-26 19:53:48 +00:00
parent cb1ea2ade7
commit 72afcc3bb8

View file

@ -1,4 +1,4 @@
/* $Id: misc.c,v 1.16 2004/05/26 09:50:10 weiden Exp $ /* $Id: misc.c,v 1.17 2004/05/26 19:53:48 navaraf Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -242,7 +242,7 @@ ImpersonateLoggedOnUser(HANDLE hToken)
/* Impersonate the the current thread */ /* Impersonate the the current thread */
Status = NtSetInformationThread (NtCurrentThread (), Status = NtSetInformationThread (NtCurrentThread (),
ThreadImpersonationToken, ThreadImpersonationToken,
NewToken, &NewToken,
sizeof(HANDLE)); sizeof(HANDLE));
if (Duplicated == TRUE) if (Duplicated == TRUE)