--- a/userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp Wed Sep 15 13:42:27 2010 +0300
+++ b/userlibandfileserver/fileserver/sfat32/sl_mnt32.cpp Wed Oct 13 16:04:24 2010 +0300
@@ -218,8 +218,8 @@
void CFatMountCB::SetVolumeCleanL(TBool aClean)
{
- //-- The volume can't be set clean if there are disk access objects opened on it. This precondition must be checked before calling this function
- if(aClean && Locked())
+ //-- The volume can't be set clean if there are objects opened on it. This precondition must be checked before calling this function
+ if(aClean && LockStatus()!=0)
{
__PRINT1(_L("#- CFatMountCB::SetVolumeCleanL drive:%d isn't free!"),DriveNumber());
ASSERT(0);
@@ -1068,8 +1068,8 @@
// Read the remaining length or the entire cluster block whichever is smaller
TInt readLength = (TInt)Min((TInt64)(aLength-readTotal),(clusterListLen<<ClusterSizeLog2())-pos);
__ASSERT_DEBUG(readLength>0,Fault(EReadFileSectionFailed));
- TInt64 dataAddress=(FAT().DataPositionInBytesL(cluster))+pos;
- iRawDisk->ReadL(dataAddress,readLength,aTrg,aMessage,readTotal, 0);
+ TInt64 dataAddress=(FAT().DataPositionInBytes(cluster))+pos;
+ iRawDisk->ReadL(dataAddress,readLength,aTrg,aMessage,readTotal);
readTotal += readLength;
if (readTotal == aLength)