Skip to content

Commit

Permalink
Windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Nov 30, 2019
1 parent ed08ef5 commit 0b5a263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/file_system.cpp
Expand Up @@ -410,7 +410,7 @@ int64_t FileSystem::GetFileSize(FileHandle &handle) {
void FileSystem::Truncate(FileHandle &handle, int64_t new_size) {
HANDLE hFile = ((WindowsFileHandle &)handle).fd;
// seek to the location
SetFilePointer(handle, location);
SetFilePointer(handle, new_size);
// now set the end of file position
if (!SetEndOfFile(hFile)) {
auto error = GetLastErrorAsString();
Expand Down

0 comments on commit 0b5a263

Please sign in to comment.