From 1c23c0f8721070a32d105876569dd865e289b35c Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Wed, 16 Dec 2009 20:26:18 +0000 Subject: [PATCH] [advapi32] - Extend LsaLookupNames2 stub, fix file header - Should prevent the advapi32 lsa test crash svn path=/trunk/; revision=44622 --- reactos/dll/win32/advapi32/sec/lsa.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/advapi32/sec/lsa.c b/reactos/dll/win32/advapi32/sec/lsa.c index 0231887a92f..f792f8c7d29 100644 --- a/reactos/dll/win32/advapi32/sec/lsa.c +++ b/reactos/dll/win32/advapi32/sec/lsa.c @@ -1,12 +1,12 @@ /* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries - * FILE: lib/advapi32/sec/lsa.c + * FILE: dll/win32/advapi32/sec/lsa.c * PURPOSE: Local security authority functions * PROGRAMMER: Emanuele Aliberti * UPDATE HISTORY: - * 19990322 EA created - * 19990515 EA stubs + * 19990322 EA created + * 19990515 EA stubs * 20030202 KJK compressed stubs * */ @@ -360,6 +360,12 @@ LsaLookupNames2( { FIXME("(%p,0x%08x,0x%08x,%p,%p,%p) stub\n", PolicyHandle, Flags, Count, Names, ReferencedDomains, Sids); + if (Names != NULL && Count > 0) + { + *ReferencedDomains = RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(LSA_REFERENCED_DOMAIN_LIST)); + *Sids = RtlAllocateHeap(RtlGetProcessHeap(), 0, Count * sizeof(LSA_TRANSLATED_SID2)); + return STATUS_SOME_NOT_MAPPED; + } return STATUS_NONE_MAPPED; }