mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed block read algorithm
This commit is contained in:
parent
731f2d7e6d
commit
b9c1c6c6cf
@ -123,7 +123,7 @@ bool SubFile::read(Handle &handle, quint8 *buff, quint32 size) const
|
|||||||
if (size < remaining) {
|
if (size < remaining) {
|
||||||
memcpy(buff, handle._data.constData() + handle._blockPos, size);
|
memcpy(buff, handle._data.constData() + handle._blockPos, size);
|
||||||
handle._blockPos += size;
|
handle._blockPos += size;
|
||||||
handle._pos++;
|
handle._pos += size;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
memcpy(buff, handle._data.constData() + handle._blockPos,
|
memcpy(buff, handle._data.constData() + handle._blockPos,
|
||||||
|
Loading…
Reference in New Issue
Block a user