Initialize temporary variants before calling VariantChangeTypeEx.

This commit is contained in:
Alex Villacís Lasso 2005-01-25 18:57:43 +00:00 committed by Alexandre Julliard
parent e220907c71
commit d0bdb3888b
1 changed files with 2 additions and 0 deletions

View File

@ -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));