diff -r a5c0bb5018eb -r 48a2e0d8a4ce mtpdataproviders/mtpimagedp/src/cmtpimagedpobjectpropertymgr.cpp --- a/mtpdataproviders/mtpimagedp/src/cmtpimagedpobjectpropertymgr.cpp Fri May 14 16:42:01 2010 +0300 +++ b/mtpdataproviders/mtpimagedp/src/cmtpimagedpobjectpropertymgr.cpp Thu May 27 13:42:43 2010 +0300 @@ -403,16 +403,18 @@ aValue = KThumbFormatCode; break; case EMTPObjectPropCodeProtectionStatus: - iFs.Entry(iObjectInfo->DesC(CMTPObjectMetaData::ESuid), entry); - if (entry.IsReadOnly()) + { + TInt err = iFs.Entry(iObjectInfo->DesC(CMTPObjectMetaData::ESuid), entry); + if ( err == KErrNone && entry.IsReadOnly()) { aValue = EMTPProtectionReadOnly; } else { aValue = EMTPProtectionNoProtection; - } - break; + } + } + break; default: aValue = 0;//initialization //ingore the failure if we can't get properties form MdS