From a8ad5cd5587dd5e98857d7d222a4e8c8e46597e0 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Tue, 3 Jun 2008 06:49:35 -0700 Subject: [PATCH] oleaut32/tests: Use VariantInit, not VariantClear, to initialize new variants. --- dlls/oleaut32/tests/vartype.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index e436d8cea83..c2bc231d596 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -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);