userlibandfileserver/fileserver/sfsrv/cl_parse.cpp
branchRCL_3
changeset 21 e7d2d738d3c2
parent 0 a41df078684a
equal deleted inserted replaced
20:597aaf25e343 21:e7d2d738d3c2
   300 	if ((len+NameBuf().Length())>NameBuf().MaxLength())
   300 	if ((len+NameBuf().Length())>NameBuf().MaxLength())
   301 		return(KErrGeneral);
   301 		return(KErrGeneral);
   302 	TInt pos=aName.Locate(KPathDelimiter);
   302 	TInt pos=aName.Locate(KPathDelimiter);
   303 	if (pos!=KErrNotFound)
   303 	if (pos!=KErrNotFound)
   304 		return(KErrBadName);
   304 		return(KErrBadName);
   305 	TFileName n=aName;
   305 	
   306 	n.Append(KPathDelimiter);
   306 	NameBuf().Insert(iField[EName].pos,aName);
   307 	NameBuf().Insert(iField[EName].pos,n);
   307 	NameBuf().Insert(iField[EName].pos + aName.Length(),TPtrC16((const TUint16*)(&KPathDelimiter),1));
   308 	iField[EPath].len=(TUint8)(iField[EPath].len+len);
   308 	iField[EPath].len=(TUint8)(iField[EPath].len+len);
   309 	iField[EName].pos=(TUint8)(iField[EName].pos+len);
   309 	iField[EName].pos=(TUint8)(iField[EName].pos+len);
   310 	iField[EExt].pos=(TUint8)(len+iField[EExt].pos);
   310 	iField[EExt].pos=(TUint8)(len+iField[EExt].pos);
   311 	if (IsRoot())
   311 	if (IsRoot())
   312 		iWild&=~EIsRoot;
   312 		iWild&=~EIsRoot;