mtpfws/mtpfw/dataproviders/dputility/src/cmtpsendobjectinfo.cpp
branchRCL_3
changeset 24 523717cdb0ad
parent 19 ef55b168cedb
child 39 dbd1c5e08735
--- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpsendobjectinfo.cpp	Tue May 11 16:59:11 2010 +0300
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpsendobjectinfo.cpp	Tue May 25 13:35:25 2010 +0300
@@ -717,7 +717,7 @@
             iFullPath.LowerCase();
             __FLOG_VA((_L8("File Name %S"), &iFullPath));
             TParsePtrC file( iFullPath );
-            if ( file.ExtPresent() && iExceptionList.Find(file.Ext()) != KErrNotFound)
+            if ( file.ExtPresent() && file.Ext().Length()<=KExtensionLength && iExceptionList.Find(file.Ext()) != KErrNotFound)
                 {
                 TUint32 DpId = iFramework.DataProviderId();
                 HBufC* mime = iDpSingletons.MTPUtility().ContainerMimeType(iFullPath);