userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp
changeset 140 2ac1c5c27758
parent 131 e880629062dd
child 189 a5496987b1da
child 247 d8d70de2bd36
equal deleted inserted replaced
135:5e441a173c63 140:2ac1c5c27758
  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