oleaut32/tests: Use VariantInit, not VariantClear, to initialize new variants.
This commit is contained in:
parent
ecfa0fbcea
commit
a8ad5cd558
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue