The check to see if a property is a VT_BSTR should be done with AND, not OR.
I found this because my compiler complained about these lines with:
warning C4554: '|': check operator precedence for possible error; use parentheses to clarify precedence. So I added parentheses to silence the warning as well.
The check to see if a property is a
VT_BSTR
should be done with AND, not OR.I found this because my compiler complained about these lines with:
warning C4554: '|': check operator precedence for possible error; use parentheses to clarify precedence
. So I added parentheses to silence the warning as well.