Hans Leidekker : secur32: Return a handle from LsaRegisterLogonProcess.
Alexandre Julliard
julliard at winehq.org
Wed Apr 18 15:13:20 CDT 2018
Module: wine
Branch: master
Commit: 61171a5f11a1e631c3075f1415ddc0bf8f4c31ff
URL: https://source.winehq.org/git/wine.git/?a=commit;h=61171a5f11a1e631c3075f1415ddc0bf8f4c31ff
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Apr 18 12:53:57 2018 +0200
secur32: Return a handle from LsaRegisterLogonProcess.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/secur32/lsa.c | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
diff --git a/dlls/secur32/lsa.c b/dlls/secur32/lsa.c
index 779d67a..5fe6f3a 100644
--- a/dlls/secur32/lsa.c
+++ b/dlls/secur32/lsa.c
@@ -88,18 +88,34 @@ NTSTATUS WINAPI LsaCallAuthenticationPackage(HANDLE lsa_handle, ULONG package_id
return STATUS_INVALID_PARAMETER;
}
+struct lsa_connection *alloc_lsa_connection(void)
+{
+ struct lsa_connection *ret;
+ if (!(ret = heap_alloc(sizeof(*ret)))) return NULL;
+ ret->magic = LSA_MAGIC;
+ return ret;
+}
+
NTSTATUS WINAPI LsaConnectUntrusted(PHANDLE LsaHandle)
{
struct lsa_connection *lsa_conn;
TRACE("%p\n", LsaHandle);
- lsa_conn = heap_alloc(sizeof(*lsa_conn));
- if (!lsa_conn) return STATUS_NO_MEMORY;
-
- lsa_conn->magic = LSA_MAGIC;
+ if (!(lsa_conn = alloc_lsa_connection())) return STATUS_NO_MEMORY;
*LsaHandle = lsa_conn;
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS WINAPI LsaRegisterLogonProcess(PLSA_STRING LogonProcessName,
+ PHANDLE LsaHandle, PLSA_OPERATIONAL_MODE SecurityMode)
+{
+ struct lsa_connection *lsa_conn;
+
+ FIXME("%s %p %p stub\n", debugstr_as(LogonProcessName), LsaHandle, SecurityMode);
+ if (!(lsa_conn = alloc_lsa_connection())) return STATUS_NO_MEMORY;
+ *LsaHandle = lsa_conn;
return STATUS_SUCCESS;
}
@@ -923,10 +939,3 @@ NTSTATUS WINAPI LsaLookupAuthenticationPackage(HANDLE lsa_handle,
return STATUS_UNSUCCESSFUL; /* FIXME */
}
-
-NTSTATUS WINAPI LsaRegisterLogonProcess(PLSA_STRING LogonProcessName,
- PHANDLE LsaHandle, PLSA_OPERATIONAL_MODE SecurityMode)
-{
- FIXME("%p %p %p stub\n", LogonProcessName, LsaHandle, SecurityMode);
- return STATUS_SUCCESS;
-}
More information about the wine-cvs
mailing list