--- a/mtpfws/mtpfw/src/cmtpdataprovidercontroller.cpp Fri May 14 16:42:01 2010 +0300
+++ b/mtpfws/mtpfw/src/cmtpdataprovidercontroller.cpp Thu May 27 13:42:43 2010 +0300
@@ -372,7 +372,17 @@
*/
EXPORT_C TInt CMTPDataProviderController::DpId(TUint aUid)
{
- return iDataProviders.FindInOrder(TUid::Uid(aUid), CMTPDataProvider::LinearOrderUid);
+ TInt dpId = KErrNotFound;
+ for (TUint index=0; index < iDataProviders.Count(); index++)
+ {
+ if (iDataProviders[index]->ImplementationUid().iUid == aUid)
+ {
+ dpId = iDataProviders[index]->DataProviderId();
+ break;
+ }
+ }
+
+ return dpId;
}
/**