mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Added missing endianity handling
This commit is contained in:
parent
c7762e26fb
commit
4b0b6513d1
@ -243,6 +243,7 @@ bool OZF::isOZF(const QString &path)
|
||||
if (file.read((char*)&magic, sizeof(magic)) < (qint64)sizeof(magic))
|
||||
return false;
|
||||
|
||||
magic = qFromLittleEndian(magic);
|
||||
if (magic == OZF2_MAGIC || magic == OZF3_MAGIC)
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user