Rob Shearman : oleaut32: Zero initialize the stack used on the server side of typelib marshalling.

Alexandre Julliard julliard at winehq.org
Mon Nov 16 11:43:53 CST 2009


Module: wine
Branch: master
Commit: b5139f45b35213161284f4b4505430624de7699d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b5139f45b35213161284f4b4505430624de7699d

Author: Rob Shearman <robertshearman at 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;




More information about the wine-cvs mailing list