Module: wine Branch: master Commit: b5139f45b35213161284f4b4505430624de7699d URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5139f45b35213161284f4b450...
Author: Rob Shearman robertshearman@gmail.com Date: Sun Nov 15 17:12:42 2009 +0000
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index b3d1734..eae17e2 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -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;