From 794fe5ff6aed530aa35f75c9231e6fc7d22692c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 10 Aug 2004 21:18:16 +0000 Subject: [PATCH] Allocate new LUID for each logon session svn path=/trunk/; revision=10490 --- reactos/lib/advapi32/misc/logon.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/lib/advapi32/misc/logon.c b/reactos/lib/advapi32/misc/logon.c index 6935632a9d2..0dfab319806 100644 --- a/reactos/lib/advapi32/misc/logon.c +++ b/reactos/lib/advapi32/misc/logon.c @@ -1,4 +1,4 @@ -/* $Id: logon.c,v 1.9 2004/07/10 21:15:26 ekohl Exp $ +/* $Id: logon.c,v 1.10 2004/08/10 21:18:16 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -597,9 +597,11 @@ LogonUserW (LPWSTR lpszUsername, ObjectAttributes.SecurityDescriptor = NULL; ObjectAttributes.SecurityQualityOfService = &Qos; -// AuthenticationId = SYSTEM_LUID; - AuthenticationId.LowPart = 1000; - AuthenticationId.HighPart = 0; + Status = NtAllocateLocallyUniqueId(&AuthenticationId); + if (!NT_SUCCESS(Status)) + { + return FALSE; + } ExpirationTime.QuadPart = -1; /* Get the user SID from the registry */