From fc5a89cd69967c155836b9276d0742b964d298a6 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 27 Dec 2009 19:10:30 +0000 Subject: [PATCH] Move the client-side LSA functions from secur32.dll to the new static library lsalib because these functions will be shared between ntoskrnl.exe, advapi32.dll and secur32.dll. svn path=/trunk/; revision=44774 --- reactos/dll/win32/secur32/secur32.rbuild | 2 +- reactos/lib/lib.rbuild | 3 +++ reactos/{dll/win32/secur32 => lib/lsalib}/lsa.c | 13 +++++++------ reactos/lib/lsalib/lsalib.rbuild | 7 +++++++ 4 files changed, 18 insertions(+), 7 deletions(-) rename reactos/{dll/win32/secur32 => lib/lsalib}/lsa.c (98%) create mode 100644 reactos/lib/lsalib/lsalib.rbuild diff --git a/reactos/dll/win32/secur32/secur32.rbuild b/reactos/dll/win32/secur32/secur32.rbuild index 30002e14496..d75e9266efb 100644 --- a/reactos/dll/win32/secur32/secur32.rbuild +++ b/reactos/dll/win32/secur32/secur32.rbuild @@ -3,10 +3,10 @@ . include/reactos/subsys + lsalib ntdll advapi32 dllmain.c - lsa.c secext.c sspi.c secur32.rc diff --git a/reactos/lib/lib.rbuild b/reactos/lib/lib.rbuild index d8e3f4de44d..330937fdd4f 100644 --- a/reactos/lib/lib.rbuild +++ b/reactos/lib/lib.rbuild @@ -34,6 +34,9 @@ + + + diff --git a/reactos/dll/win32/secur32/lsa.c b/reactos/lib/lsalib/lsa.c similarity index 98% rename from reactos/dll/win32/secur32/lsa.c rename to reactos/lib/lsalib/lsa.c index 272de8eee87..9ac411c4d26 100644 --- a/reactos/dll/win32/secur32/lsa.c +++ b/reactos/lib/lsalib/lsa.c @@ -1,8 +1,7 @@ -/* $Id$ - * +/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries - * FILE: lib/secur32/lsa.c + * FILE: lib/lsalib/lsa.c * PURPOSE: Client-side LSA functions * UPDATE HISTORY: * Created 05/08/00 @@ -10,7 +9,9 @@ /* INCLUDES ******************************************************************/ -#include +#include +#include +#include #define NDEBUG #include @@ -317,14 +318,14 @@ LsaRegisterLogonProcess(PLSA_STRING LsaLogonProcessName, if (!NT_SUCCESS(Status)) { NtClose(*Handle); - *Handle = INVALID_HANDLE_VALUE; + *Handle = NULL; return(Status); } if (!NT_SUCCESS(Reply.Status)) { NtClose(*Handle); - *Handle = INVALID_HANDLE_VALUE; + *Handle = NULL; return(Status); } diff --git a/reactos/lib/lsalib/lsalib.rbuild b/reactos/lib/lsalib/lsalib.rbuild new file mode 100644 index 00000000000..b917351f45e --- /dev/null +++ b/reactos/lib/lsalib/lsalib.rbuild @@ -0,0 +1,7 @@ + + + + . + include/reactos/subsys + lsa.c + -- 2.17.1