mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +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))
|
if (file.read((char*)&magic, sizeof(magic)) < (qint64)sizeof(magic))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
magic = qFromLittleEndian(magic);
|
||||||
if (magic == OZF2_MAGIC || magic == OZF3_MAGIC)
|
if (magic == OZF2_MAGIC || magic == OZF3_MAGIC)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user