(*TruePath)[retLength] = '/';
strcpy(*TruePath+retLength+1, pathEle);
- LOG("*TruePath = '%s'\n", *TruePath);
+ LOG("*TruePath = '%s'", *TruePath);
// - Extend Path
retLength += nextSlash + 1;
}
+ if( !curNode->FindDir ) {
+ if(curNode->Close) curNode->Close(curNode);
+ if(TruePath) {
+ free(*TruePath);
+ *TruePath = NULL;
+ }
+ Log("FindDir fail on '%s'", Path);
+ LEAVE('n');
+ return NULL;
+ }
+
// Get last node
LOG("VFS_ParsePath: FindDir(%p, '%s')", curNode, &Path[ofs]);
tmpNode = curNode->FindDir(curNode, &Path[ofs]);