fix(file): call ->getpos, not ->setpos

This commit is contained in:
phaneron 2025-03-30 13:03:52 -04:00
parent b74865fa61
commit e3e99fa0af

View file

@ -14,7 +14,7 @@ bool GetPos(StreamRecord* file, int64_t& offset) {
parms.whence = BC_FILE_SEEK_CURRENT; parms.whence = BC_FILE_SEEK_CURRENT;
auto fs = System_File::Stacked::s_manager; auto fs = System_File::Stacked::s_manager;
if (!fs || !fs->setpos(fs, &parms)) { if (!fs || !fs->getpos(fs, &parms)) {
return false; return false;
} }
offset = parms.offset; offset = parms.offset;