[PATCH 1/6] msv1_0: Use RtlAllocateHeap to allocate output buffers.
Hans Leidekker
hans at codeweavers.com
Fri Apr 30 04:59:34 CDT 2021
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/msv1_0/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/msv1_0/main.c b/dlls/msv1_0/main.c
index e07dcf6f352..4b0a636bd77 100644
--- a/dlls/msv1_0/main.c
+++ b/dlls/msv1_0/main.c
@@ -765,7 +765,8 @@ static NTSTATUS NTAPI ntlm_SpInitLsaModeContext( LSA_SEC_HANDLE cred_handle, LSA
if (ctx_req & ISC_REQ_ALLOCATE_MEMORY)
{
- if (!(output->pBuffers[idx].pvBuffer = malloc( bin_len )))
+ /* freed with secur32.FreeContextBuffer */
+ if (!(output->pBuffers[idx].pvBuffer = RtlAllocateHeap( GetProcessHeap(), 0, bin_len )))
{
status = SEC_E_INSUFFICIENT_MEMORY;
goto done;
--
2.30.2
More information about the wine-devel
mailing list