harvester/monitorplugins/inc/fsutil.inl
branchRCL_3
changeset 15 3cebc1a84278
parent 0 c53acadfccc6
equal deleted inserted replaced
14:646a02f170b9 15:3cebc1a84278
    50 	CleanupClosePushL( presentMedias );
    50 	CleanupClosePushL( presentMedias );
    51 	CMdEHarvesterSession* sess = (CMdEHarvesterSession*) aMdeSession;
    51 	CMdEHarvesterSession* sess = (CMdEHarvesterSession*) aMdeSession;
    52 	sess->GetPresentMediasL( presentMedias );
    52 	sess->GetPresentMediasL( presentMedias );
    53 
    53 
    54     TUint32 mediaid = 0;
    54     TUint32 mediaid = 0;
    55     TInt count = presentMedias.Count();
    55     for( TInt i = presentMedias.Count() - 1; i >=0; i-- )
    56     for( TInt i=0;i<count;i++ )
       
    57     	{
    56     	{
    58     	TMdEMediaInfo info = presentMedias[i];
    57     	TMdEMediaInfo info = presentMedias[i];
    59     	if( info.iDrive == aDrive )
    58     	if( info.iDrive == aDrive )
    60     		{
    59     		{
    61     		mediaid = info.iMediaId;
    60     		mediaid = info.iMediaId;