mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
A little bit more sane feature check
This commit is contained in:
parent
060c4df170
commit
946f30f696
@ -100,17 +100,19 @@ bool LBLFile::load(Handle &hdl, const RGNFile *rgn, Handle &rgnHdl)
|
|||||||
&& readUInt32(hdl, flags) && readUInt32(hdl, _imgOffset)
|
&& readUInt32(hdl, flags) && readUInt32(hdl, _imgOffset)
|
||||||
&& readUInt32(hdl, _imgSize)))
|
&& readUInt32(hdl, _imgSize)))
|
||||||
return false;
|
return false;
|
||||||
quint32 count = size ? size / recordSize : 0;
|
|
||||||
|
|
||||||
quint32 maxId = count - 1;
|
if (size && recordSize) {
|
||||||
_imgOffsetIdSize = 0;
|
quint32 count = size / recordSize;
|
||||||
do {
|
quint32 maxId = count - 1;
|
||||||
_imgOffsetIdSize++;
|
_imgOffsetIdSize = 0;
|
||||||
maxId = maxId >> 8;
|
do {
|
||||||
} while (maxId != 0);
|
_imgOffsetIdSize++;
|
||||||
|
maxId = maxId >> 8;
|
||||||
|
} while (maxId != 0);
|
||||||
|
|
||||||
if (!loadFiles(hdl, count, offset, recordSize))
|
if (!loadFiles(hdl, count, offset, recordSize))
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_encoding == 11) {
|
if (_encoding == 11) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user