From d0bdb3888b335adc28466d0641e00b10831d0a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Tue, 25 Jan 2005 18:57:43 +0000 Subject: [PATCH] Initialize temporary variants before calling VariantChangeTypeEx. --- dlls/oleaut32/variant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index fd0f9de6ae3..147784e9d9f 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -2467,6 +2467,7 @@ HRESULT WINAPI VarCat(LPVARIANT left, LPVARIANT right, LPVARIANT out) HRESULT hres; V_VT(out) = VT_BSTR; + VariantInit(&bstrvar); hres = VariantChangeTypeEx(&bstrvar,right,0,0,VT_BSTR); if (hres) { FIXME("Failed to convert right side from vt %d to VT_BSTR?\n",V_VT(right)); @@ -2480,6 +2481,7 @@ HRESULT WINAPI VarCat(LPVARIANT left, LPVARIANT right, LPVARIANT out) HRESULT hres; V_VT(out) = VT_BSTR; + VariantInit(&bstrvar); hres = VariantChangeTypeEx(&bstrvar,left,0,0,VT_BSTR); if (hres) { FIXME("Failed to convert right side from vt %d to VT_BSTR?\n",V_VT(right));