Eliminate recursive search of VFS file system in attempt to speed

search for dicts.
This commit is contained in:
ehouse 2004-02-10 05:22:39 +00:00
parent bc4937048c
commit 982994dce6

View file

@ -192,11 +192,13 @@ searchDir( MPFORMAL PalmDictList** dlp, UInt16 volNum, unsigned char separator,
}
if ( (fit.attributes & vfsFileAttrDirectory) != 0 ) {
#ifdef RECURSIVE_VFS_SEARCH
XP_U16 len = XP_STRLEN((const char*)path);
path[len] = separator;
path[len+1] = '\0';
searchDir( MPPARM(mpool) dlp, volNum, separator,
path, pathSize, creatorSought );
#endif
} else if ( (ext = (XP_UCHAR*)StrStr( (const char*)path, ".pdb" ))
!= NULL ) {