diff -r 9f21bab39f42 -r 4a4892eec172 harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp --- a/harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp Tue May 11 16:36:55 2010 +0300 +++ b/harvester/monitorplugins/mmcplugin/src/mmcmonitorplugin.cpp Tue May 25 13:10:05 2010 +0300 @@ -113,8 +113,7 @@ TUint32 hdMediaId( 0 ); hdMediaId = iMountTask->GetInternalDriveMediaId(); - const TInt count( medias.Count() ); - for ( TInt i = 0; i < count; i++ ) + for( TInt i = medias.Count() - 1; i >=0; i-- ) { TRAP_IGNORE( iMdEClient->GetMediaL( medias[i].iMediaId, driveLetter, presentState ) ); @@ -349,9 +348,11 @@ } iFs.Drive( driveInfo, i ); - if ( ((driveInfo.iDriveAtt & KDriveAttRemovable) || (driveInfo.iDriveAtt & KDriveAttLogicallyRemovable) || - (driveInfo.iType == EMediaHardDisk && driveStatus & DriveInfo::EDriveInternal) ) && - (driveInfo.iType != EMediaNotPresent) ) + if( ( (driveStatus & DriveInfo::EDriveRemovable) || + (driveInfo.iType == EMediaHardDisk && driveStatus & DriveInfo::EDriveInternal) || + (driveInfo.iDriveAtt & KDriveAttLogicallyRemovable) || + (driveInfo.iDriveAtt & KDriveAttRemovable) ) && + (driveInfo.iType != EMediaNotPresent) ) { count++; // DEBUG INFO