Nikolay Sivov : msxml3: Initialize VARIANT before passing it to VariantCopy .
Module: wine Branch: master Commit: 2cd62a5dbd51164291cfc717955d6009e287fa68 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2cd62a5dbd51164291cfc71795... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Dec 14 14:51:30 2011 +0300 msxml3: Initialize VARIANT before passing it to VariantCopy. --- dlls/msxml3/dispex.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/dispex.c b/dlls/msxml3/dispex.c index d13b182..23b8805 100644 --- a/dlls/msxml3/dispex.c +++ b/dlls/msxml3/dispex.c @@ -553,6 +553,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc switch(wFlags) { case INVOKE_PROPERTYGET: + V_VT(pvarRes) = VT_EMPTY; return VariantCopy(pvarRes, var); case INVOKE_PROPERTYPUT: VariantClear(var);
participants (1)
-
Alexandre Julliard