mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 10:02:30 +00:00
fix(file): call ->getpos, not ->setpos
This commit is contained in:
parent
b74865fa61
commit
e3e99fa0af
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue