1
0
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:
Martin Tůma 2017-07-31 00:46:10 +02:00
parent c7762e26fb
commit 4b0b6513d1

View File

@ -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;