[LSASRV]: Implement a simplified version of LsaIAllocateHeap / LsaIAllocateHeapZero / LsaIFreeHeap.

CORE-12432

svn path=/trunk/; revision=73330
This commit is contained in:
Hermès Bélusca-Maïto 2016-11-20 23:53:49 +00:00
parent a310f53b84
commit 4fc25ae9f2
2 changed files with 13 additions and 11 deletions

View file

@ -360,25 +360,27 @@ LsapGetAuthenticationPackage(IN ULONG PackageId)
}
static
PVOID
NTAPI
LsapAllocateHeap(IN ULONG Length)
{
return RtlAllocateHeap(RtlGetProcessHeap(),
HEAP_ZERO_MEMORY,
Length);
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Length);
}
PVOID
NTAPI
LsapAllocateHeapZero(IN ULONG Length)
{
return RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, Length);
}
static
VOID
NTAPI
LsapFreeHeap(IN PVOID Base)
{
RtlFreeHeap(RtlGetProcessHeap(),
0,
Base);
RtlFreeHeap(RtlGetProcessHeap(), 0, Base);
}

View file

@ -4,8 +4,8 @@
@ stub DsRolerGetDcOperationProgress
@ stub DsRolerGetDcOperationResults
@ stub LsaIAddNameToLogonSession
@ stub LsaIAllocateHeap
@ stub LsaIAllocateHeapZero
@ stdcall LsaIAllocateHeap(long) LsapAllocateHeap
@ stdcall LsaIAllocateHeapZero(long) LsapAllocateHeapZero
@ stub LsaIAuditAccountLogon
@ stub LsaIAuditAccountLogonEx
@ stub LsaIAuditKdcEvent
@ -27,7 +27,7 @@
@ stub LsaIFilterSids
@ stub LsaIForestTrustFindMatch
@ stub LsaIFreeForestTrustInfo
@ stub LsaIFreeHeap
@ stdcall LsaIFreeHeap(ptr) LsapFreeHeap
@ stub LsaIFreeReturnBuffer
@ stub LsaIFree_LSAI_PRIVATE_DATA #DATA
@ stub LsaIFree_LSAI_SECRET_ENUM_BUFFER