Commit a8ad5cd5 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

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

parent ecfa0fbc
......@@ -5792,8 +5792,8 @@ static void test_NullByRef(void)
VARIANT v1, v2;
HRESULT hRes;
VariantClear(&v1);
VariantClear(&v2);
VariantInit(&v1);
VariantInit(&v2);
V_VT(&v1) = VT_BYREF|VT_VARIANT;
V_BYREF(&v1) = 0;
......@@ -5826,8 +5826,8 @@ static void test_ChangeType_keep_dst(void)
HRESULT hres;
bstr = SysAllocString(testW);
VariantClear(&v1);
VariantClear(&v2);
VariantInit(&v1);
VariantInit(&v2);
V_VT(&v1) = VT_BSTR;
V_BSTR(&v1) = bstr;
hres = VariantChangeTypeEx(&v1, &v1, 0, 0, VT_INT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment