Update src/modules/filesystem/DroppedFile.cpp

as suggested

Co-authored-by: Qais Patankar <qaisjp@gmail.com>
This commit is contained in:
Miku AuahDark
2021-01-01 20:48:15 +08:00
committed by GitHub
parent 781acf5c4d
commit 61580c7a0d
+4 -3
View File
@@ -199,12 +199,13 @@ int64 DroppedFile::tell()
bool DroppedFile::seek(uint64 pos)
{
return file != nullptr &&
if (file == nullptr)
return false;
#ifdef LOVE_WINDOWS
_fseeki64(file, (int64) pos, SEEK_SET) == 0;
return _fseeki64(file, (int64) pos, SEEK_SET) == 0;
#else
fseeko(file, (off_t) pos, SEEK_SET) == 0;
return fseeko(file, (off_t) pos, SEEK_SET) == 0;
#endif
}