Commit b5139f45 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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.
parent 1f3a14e7
......@@ -2105,7 +2105,7 @@ TMStubImpl_Invoke(
nrofargs = 0;
for (i=0;i<fdesc->cParams;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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment