oleaut32: Unmarshall byref types correctly in IDispatch_Invoke_Proxy.

Rob Shearman robertshearman at gmail.com
Tue Nov 17 18:16:51 CST 2009


Byref arguments should only be passed in the rgVarRef array, not in
arg array. Copy the value into the rgVarRef array before calling the
remote function to ensure that memory isn't allocated for the byref
pointers during unmarshalling.
---
 dlls/oleaut32/tests/tmarshal.c |    1 -
 dlls/oleaut32/usrmarshal.c     |   14 +++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

Fixes bug 4770.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-oleaut32-Unmarshall-byref-types-correctly-in-IDispat.patch
Type: text/x-patch
Size: 2003 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091118/aaf298da/attachment.bin>


More information about the wine-patches mailing list