mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
r13119: Fix for #1779 from William Jojo <jojowil@hvcc.edu>
Jeremy. (This used to be commit 103cac7dd314117b15e27fd263a64beeb36ed6e6)
This commit is contained in:
parent
6afd823e42
commit
7756059d38
@ -49,8 +49,9 @@ static BOOL cli_issue_read(struct cli_state *cli, int fnum, off_t offset,
|
||||
SSVAL(cli->outbuf,smb_vwv7,((size >> 16) & 1));
|
||||
SSVAL(cli->outbuf,smb_mid,cli->mid + i);
|
||||
|
||||
if (bigoffset)
|
||||
SIVAL(cli->outbuf,smb_vwv10,(offset>>32) & 0xffffffff);
|
||||
if (bigoffset) {
|
||||
SIVAL(cli->outbuf,smb_vwv10,(((SMB_BIG_UINT)offset)>>32) & 0xffffffff);
|
||||
}
|
||||
|
||||
return cli_send_smb(cli);
|
||||
}
|
||||
@ -302,8 +303,9 @@ static BOOL cli_issue_write(struct cli_state *cli, int fnum, off_t offset,
|
||||
SSVAL(cli->outbuf,smb_vwv11,
|
||||
smb_buf(cli->outbuf) - smb_base(cli->outbuf));
|
||||
|
||||
if (large_writex)
|
||||
SIVAL(cli->outbuf,smb_vwv12,(offset>>32) & 0xffffffff);
|
||||
if (large_writex) {
|
||||
SIVAL(cli->outbuf,smb_vwv12,(((SMB_BIG_UINT)offset)>>32) & 0xffffffff);
|
||||
}
|
||||
|
||||
p = smb_base(cli->outbuf) + SVAL(cli->outbuf,smb_vwv11);
|
||||
memcpy(p, buf, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user