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:
parent
21fa9b3bb4
commit
fffd9d7dd4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user