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

This commit is contained in:
Rob Shearman 2006-12-23 15:51:41 +00:00 committed by Alexandre Julliard
parent 452c127071
commit 029d244ea9
1 changed files with 2 additions and 2 deletions

View File

@ -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