userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp
changeset 200 73ea206103e6
parent 139 95f71bcdcdb7
child 189 a5496987b1da
child 247 d8d70de2bd36
equal deleted inserted replaced
152:657f875b013e 200:73ea206103e6
  1071             {
  1071             {
  1072 			//  Read the remaining length or the entire cluster block whichever is smaller
  1072 			//  Read the remaining length or the entire cluster block whichever is smaller
  1073 			TInt readLength = (TInt)Min((TInt64)(aLength-readTotal),(clusterListLen<<ClusterSizeLog2())-pos);
  1073 			TInt readLength = (TInt)Min((TInt64)(aLength-readTotal),(clusterListLen<<ClusterSizeLog2())-pos);
  1074 			__ASSERT_DEBUG(readLength>0,Fault(EReadFileSectionFailed));
  1074 			__ASSERT_DEBUG(readLength>0,Fault(EReadFileSectionFailed));
  1075 			TInt64 dataAddress=(FAT().DataPositionInBytes(cluster))+pos;
  1075 			TInt64 dataAddress=(FAT().DataPositionInBytes(cluster))+pos;
  1076 			iRawDisk->ReadL(dataAddress,readLength,aTrg,aMessage,readTotal);
  1076 			iRawDisk->ReadL(dataAddress,readLength,aTrg,aMessage,readTotal, 0);
  1077 			readTotal += readLength;
  1077 			readTotal += readLength;
  1078 
  1078 
  1079 			if (readTotal == aLength)
  1079 			if (readTotal == aLength)
  1080 				return;
  1080 				return;
  1081 
  1081