Commit bc585fd4 authored by Robert Loehning's avatar Robert Loehning Committed by Tobias Hunger

Fixed operator precedence

Change-Id: I8482915ac8218d6575fb4c51dbcf0d1fcd0d60e4
Reviewed-on: http://codereview.qt-project.org/4681Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 2b480103
......@@ -268,9 +268,10 @@ static QList<Abi> abiOf(const QByteArray &data)
// Windows PE: values are LE (except for a few exceptions which we will not use here).
// MZ header first (ZM is also allowed, but rarely used)
if (!getUint8(data, 0) == 'M' || !getUint8(data, 1) == 'Z')
if (!getUint8(data, 0) == 'Z' || !getUint8(data, 1) == 'M')
return result;
const quint8 firstChar = getUint8(data, 0);
const quint8 secondChar = getUint8(data, 1);
if ((firstChar != 'M' || secondChar != 'Z') && (firstChar != 'Z' || secondChar != 'M'))
return result;
// Get PE/COFF header position from MZ header:
qint32 pePos = getLEUint32(data, 60);
......
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