Robert Shearman : rpcrt4: Initialise pStubMsg->
MemorySize to zero before calling ComplexStructMemorySize from
NdrComplexArrayUnmarshall .
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 9 14:39:42 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 578df90d6d7b3d974806a091790388f29a3a36d5
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=578df90d6d7b3d974806a091790388f29a3a36d5
Author: Robert Shearman <rob at codeweavers.com>
Date: Fri Jun 9 17:25:16 2006 +0100
rpcrt4: Initialise pStubMsg->MemorySize to zero before calling ComplexStructMemorySize from NdrComplexArrayUnmarshall.
---
dlls/rpcrt4/ndr_marshall.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c
index 5ce8134..7bddb4f 100644
--- a/dlls/rpcrt4/ndr_marshall.c
+++ b/dlls/rpcrt4/ndr_marshall.c
@@ -2573,6 +2573,7 @@ unsigned long WINAPI NdrComplexArrayMemo
SavedMemorySize = pStubMsg->MemorySize;
Buffer = pStubMsg->Buffer;
+ pStubMsg->MemorySize = 0;
esize = ComplexStructMemorySize(pStubMsg, pFormat);
pStubMsg->Buffer = Buffer;
More information about the wine-cvs
mailing list