mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 00:58:15 -04:00
LibRaw_QIODevice::seek() avoid seek on a sequential device
This commit is contained in:
parent
d881a7bbb1
commit
6f3a326cf8
@ -138,7 +138,7 @@ public:
|
||||
if (whence == SEEK_END) {
|
||||
pos = size + o;
|
||||
}
|
||||
if (pos < 0 || pos > size) {
|
||||
if (pos < 0 || pos > size || m_device->isSequential()) {
|
||||
return -1;
|
||||
}
|
||||
return m_device->seek(pos) ? 0 : -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user