diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp index 4b36202d..0a07c0fa 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp @@ -492,7 +492,7 @@ auto remote_server::fuse_read( res = -1; errno = ERANGE; } else if ((res = has_compat_open_info(handle, EBADF)) == 0) { - res = static_cast(_lseeki64( + res = static_cast(_lseeki64( static_cast(handle), static_cast<__int64>(read_offset), SEEK_SET)); if (res != -1) { data.resize(read_size); @@ -548,7 +548,7 @@ auto remote_server::fuse_write( } else { res = has_compat_open_info(handle, EBADF); if (res == 0) { - res = static_cast( + res = static_cast( _lseeki64(static_cast(handle), static_cast<__int64>(write_offset), SEEK_SET)); if (res != -1) {