oleaut32/tests: Use VariantInit, not VariantClear, to initialize new variants.

This commit is contained in:
Dan Kegel 2008-06-03 06:49:35 -07:00 committed by Alexandre Julliard
parent ecfa0fbcea
commit a8ad5cd558
1 changed files with 4 additions and 4 deletions

View File

@ -5792,8 +5792,8 @@ static void test_NullByRef(void)
VARIANT v1, v2; VARIANT v1, v2;
HRESULT hRes; HRESULT hRes;
VariantClear(&v1); VariantInit(&v1);
VariantClear(&v2); VariantInit(&v2);
V_VT(&v1) = VT_BYREF|VT_VARIANT; V_VT(&v1) = VT_BYREF|VT_VARIANT;
V_BYREF(&v1) = 0; V_BYREF(&v1) = 0;
@ -5826,8 +5826,8 @@ static void test_ChangeType_keep_dst(void)
HRESULT hres; HRESULT hres;
bstr = SysAllocString(testW); bstr = SysAllocString(testW);
VariantClear(&v1); VariantInit(&v1);
VariantClear(&v2); VariantInit(&v2);
V_VT(&v1) = VT_BSTR; V_VT(&v1) = VT_BSTR;
V_BSTR(&v1) = bstr; V_BSTR(&v1) = bstr;
hres = VariantChangeTypeEx(&v1, &v1, 0, 0, VT_INT); hres = VariantChangeTypeEx(&v1, &v1, 0, 0, VT_INT);