Module: wine Branch: master Commit: a8ad5cd5587dd5e98857d7d222a4e8c8e46597e0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a8ad5cd5587dd5e98857d7d222...
Author: Dan Kegel dank@kegel.com Date: Tue Jun 3 06:49:35 2008 -0700
oleaut32/tests: Use VariantInit, not VariantClear, to initialize new variants.
---
dlls/oleaut32/tests/vartype.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index e436d8c..c2bc231 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);