Commit 3fa57822 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

oleaut32/tests: VariantInit() isn't enough, you have to give a value, too.

parent d38dc023
...@@ -5318,18 +5318,27 @@ static void test_VarCat(void) ...@@ -5318,18 +5318,27 @@ static void test_VarCat(void)
V_VT(&left) = leftvt; V_VT(&left) = leftvt;
V_VT(&right) = rightvt; V_VT(&right) = rightvt;
if (leftvt == VT_BSTR) switch (leftvt) {
V_BSTR(&left) = SysAllocString(sz_empty); case VT_BSTR:
if (rightvt == VT_BSTR) V_BSTR(&left) = SysAllocString(sz_empty); break;
V_BSTR(&right) = SysAllocString(sz_empty); case VT_DATE:
if (leftvt == VT_DATE) V_DATE(&left) = 0.0; break;
V_DATE(&left) = 0.0; case VT_DECIMAL:
if (rightvt == VT_DATE) VarDecFromR8(0.0, &V_DECIMAL(&left)); break;
V_DATE(&right) = 0.0; default:
if (leftvt == VT_DECIMAL) V_I8(&left) = 0;
VarDecFromR8(0.0, &V_DECIMAL(&left)); }
if (rightvt == VT_DECIMAL)
VarDecFromR8(0.0, &V_DECIMAL(&right)); switch (rightvt) {
case VT_BSTR:
V_BSTR(&right) = SysAllocString(sz_empty); break;
case VT_DATE:
V_DATE(&right) = 0.0; break;
case VT_DECIMAL:
VarDecFromR8(0.0, &V_DECIMAL(&right)); break;
default:
V_I8(&right) = 0;
}
hres = VarCat(&left, &right, &result); hres = VarCat(&left, &right, &result);
......
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