From b5139f45b35213161284f4b4505430624de7699d Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 15 Nov 2009 17:12:42 +0000 Subject: [PATCH] oleaut32: Zero initialize the stack used on the server side of typelib marshalling. This is needed to allow for NDR marshalling rules in reusing memory on the client side. --- dlls/oleaut32/tmarshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index b3d1734e1d7..eae17e2927a 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -2105,7 +2105,7 @@ TMStubImpl_Invoke( nrofargs = 0; for (i=0;icParams;i++) nrofargs += _argsize(&fdesc->lprgelemdescParam[i].tdesc, tinfo); - args = HeapAlloc(GetProcessHeap(),0,(nrofargs+1)*sizeof(DWORD)); + args = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,(nrofargs+1)*sizeof(DWORD)); if (!args) { hres = E_OUTOFMEMORY; -- 2.11.4.GIT