remotestoragefw/mountmanager/src/rsfwmountutils.cpp
branchRCL_3
changeset 12 fe0554130c0f
parent 0 3ad9d5175a89
equal deleted inserted replaced
11:3fdbad865a1a 12:fe0554130c0f
   266     if (err != KErrNone) 
   266     if (err != KErrNone) 
   267         {
   267         {
   268         // if fetching the list of implemenations fail,'
   268         // if fetching the list of implemenations fail,'
   269         // (for example a temporary out of memory situation)
   269         // (for example a temporary out of memory situation)
   270         // just accept the string
   270         // just accept the string
       
   271 		implinfo.ResetAndDestroy();
   271         return ETrue;
   272         return ETrue;
   272         }
   273         }
   273      
   274      
   274     // we assume that protocol used for remote access
   275     // we assume that protocol used for remote access
   275     //  represents hierarchical relationships within the namespace.  This
   276     //  represents hierarchical relationships within the namespace.  This
   277     //      <scheme>://<authority><path>?<query>
   278     //      <scheme>://<authority><path>?<query>
   278     // check that scheme is followed by "://"
   279     // check that scheme is followed by "://"
   279     _LIT8(KDelimiter, "://");
   280     _LIT8(KDelimiter, "://");
   280     if (aDriveAddress.Length() < protocol.Length()+3) 
   281     if (aDriveAddress.Length() < protocol.Length()+3) 
   281         {
   282         {
       
   283 		implinfo.ResetAndDestroy();
   282         return EFalse;
   284         return EFalse;
   283         }
   285         }
   284     
   286     
   285     TPtrC8 test = aDriveAddress.Mid(protocol.Length(), 3);
   287     TPtrC8 test = aDriveAddress.Mid(protocol.Length(), 3);
   286     if (!(test.Compare(KDelimiter) == 0)) 
   288     if (!(test.Compare(KDelimiter) == 0)) 
   287         {
   289         {
       
   290 		implinfo.ResetAndDestroy();
   288         return EFalse;    
   291         return EFalse;    
   289         }
   292         }
   290     
   293     
   291     TInt count = implinfo.Count();
   294     TInt count = implinfo.Count();
   292     implinfo.ResetAndDestroy();
   295     implinfo.ResetAndDestroy();