[PATCH 8/9, try2] msi: automation: Clear variants returned by DispGetParam.

Misha Koshelev mk144210 at bcm.edu
Tue May 8 06:53:13 CDT 2007

* In this version only clear VT_BSTR's specifically if we are returning DISP_E_EXCEPTION, otherwise just
clear the local Variant variables at the end of the Invoke function (this way this will work for new
dispids as well without necessarily adding any VariantClears within the switch unless the new dispids 
need to return DISP_E_EXCEPTION as well; I believe this is more expansible).

DispGetParam will make copies of VT_BSTR's which we are not clearing (I thought we were at some point...
but somehow it got lost). 
 dlls/msi/automation.c |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e0fb91cf59f91edbdbbe9e478030740b81049932.diff
Type: text/x-patch
Size: 4177 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070508/511df3ed/e0fb91cf59f91edbdbbe9e478030740b81049932-0001.bin

More information about the wine-patches mailing list