Clear Out Parameters in ITypeInfo::Invoke

Robert Shearman rob at codeweavers.com
Fri Jun 10 12:25:39 CDT 2005


Hi,

I plan to rewrite ITypeInfo::Invoke because at the moment it is very 
buggy, incomplete and too big (over 250 lines). However, this patch 
fixes an issue where a function fails so doesn't set the out parameter 
to anything, so it leaves an invalid pointer there. I think the correct 
fix is that [retval] parameters should have a pointer allocated for 
them, but [out] parameters should pass in the byref value from the 
caller (i.e. passed in via the DISPPARAMS.rgvarg array).

Changelog:
Clear out parameters to stop bad pointers lying around in memory if the 
function doesn't set them to anything.

-- 
Rob Shearman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: typelib.diff
Type: text/x-patch
Size: 676 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050610/67c85aa0/typelib.bin


More information about the wine-patches mailing list