--- ADFS::Rik2.$.riscos.src-iyo-dev/5/27/tar.TungstenDev.apache.RiscOS.Sources.Networking.Omni.Protocols.LanManFS.c.SMB 2018-11-19 12:49:12.0 +0000 +++ ADFS::Rik2.$.riscos.apache.RiscOS.Sources.Networking.Omni.Protocols.LanManFS.c.SMB 2018-11-19 12:49:12.0 +0000 @@ -2644,12 +2645,16 @@ err_t SMB_Read ( int FH, uint offset, ui len_left -= n_read; where += n_read; offset += n_read; + + } else { + res = EDATALEN; + break; } FreeChain(pB_res); - if ( n_read < MAX_RX_BLOCK_SIZE ) /* Reached end of file */ - break; +// if ( n_read < MAX_RX_BLOCK_SIZE ) /* Reached end of file */ +// break; } if ( pOutLen != NULL ) *pOutLen = len-len_left;