AdapterIO: only for SEEK_SET is the position absolute

Change-Id: I8debbcc0a2d9e499bebcebe5361475737dc8f9f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7295
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
Jérôme Duval 2024-01-04 14:02:23 +01:00
parent 21fa9b3bb4
commit fffd9d7dd4

View File

@ -116,7 +116,9 @@ public:
{
AutoWriteLocker _(fLock);
return fBuffer->Seek(_PositionToRelative(position), seekMode);
if (seekMode == SEEK_SET)
return fBuffer->Seek(_PositionToRelative(position), seekMode);
return fBuffer->Seek(position, seekMode);
}
virtual off_t Position() const