Signed-off-by: Thomas Guillem <thomas@gllm.fr>
@@ -194,7 +194,7 @@ ssize_t smb_fread(smb_session *s, smb_fd fd, void *buf, size_t buf_size)
req.min_count = max_read;
req.max_count_high = 0;
req.remaining = 0;
- req.offset_high = 0;
+ req.offset_high = (file->readp >> 32) & 0xffffffff;
req.bct = 0;
SMB_MSG_PUT_PKT(req_msg, req);
@@ -64,7 +64,7 @@ struct smb_file
uint64_t alloc_size;
uint64_t size;
uint32_t attr;
- uint32_t readp; // Current read pointer (position);
+ uint64_t readp; // Current read pointer (position);
int is_dir; // 0 -> file, 1 -> directory
};