mirror of
				https://invent.kde.org/frameworks/kimageformats.git
				synced 2025-11-03 13:24:20 -05:00 
			
		
		
		
	LibRaw_QIODevice::seek() avoid seek on a sequential device
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user