SeedDB: replace seek(tell, set) with seek(cur) (#4344)

master
Weiyi Wang 2018-10-25 21:39:26 +07:00 committed by GitHub
parent c5b7018625
commit fa0e82b812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -34,7 +34,7 @@ bool SeedDB::Load() {
LOG_ERROR(Service_FS, "Failed to read seed database count fully"); LOG_ERROR(Service_FS, "Failed to read seed database count fully");
return false; return false;
} }
if (!file.Seek(file.Tell() + SEEDDB_PADDING_BYTES, SEEK_SET)) { if (!file.Seek(SEEDDB_PADDING_BYTES, SEEK_CUR)) {
LOG_ERROR(Service_FS, "Failed to skip seed database padding"); LOG_ERROR(Service_FS, "Failed to skip seed database padding");
return false; return false;
} }