Commit 029d244e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

oleaut32: Fix a crash when executing the VarAnd test with an old version of oleaut32.dll.

parent 452c1270
......@@ -5350,9 +5350,9 @@ static void test_VarAnd(void)
V_VT(&right) = rightvt | ExtraFlags[i];
V_VT(&result) = VT_EMPTY;
resvt = VT_EMPTY;
if (leftvt == VT_BSTR)
if ((leftvt | ExtraFlags[i]) == VT_BSTR)
V_BSTR(&left) = true_str;
if (rightvt == VT_BSTR)
if ((rightvt | ExtraFlags[i]) == VT_BSTR)
V_BSTR(&right) = true_str;
/* Native VarAnd always returns a error when using any extra
......
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