Hans Leidekker : msv1_0: Use RtlAllocateHeap to allocate output buffers.
Alexandre Julliard
julliard at winehq.org
Fri Apr 30 16:03:27 CDT 2021
Module: wine
Branch: master
Commit: 179e214dca29a654f834b546acfe809034c75a23
URL: https://source.winehq.org/git/wine.git/?a=commit;h=179e214dca29a654f834b546acfe809034c75a23
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Apr 30 11:59:34 2021 +0200
msv1_0: Use RtlAllocateHeap to allocate output buffers.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list