ayoubfaouzi / al-khaser

Public malware techniques used in the wild: Virtual Machine, Emulation, Debuggers, Sandbox detection.
GNU General Public License v2.0
5.95k stars 1.18k forks source link

Fix VARIANT vartype flags check on WMI properties #182

Closed Mattiwatti closed 5 years ago

Mattiwatti commented 5 years ago

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.