imgtools/romtools/rofsbuild/fsnode.cpp
changeset 702 341ab25bc4ef
parent 675 02e65118a746
equal deleted inserted replaced
674:37ee82a83d43 702:341ab25bc4ef
   285 	 
   285 	 
   286 	if(IsDirectory()) { // Directory , write dir entries ; 
   286 	if(IsDirectory()) { // Directory , write dir entries ; 
   287 		TShortDirEntry* entry = reinterpret_cast<TShortDirEntry*>(aClusterData);
   287 		TShortDirEntry* entry = reinterpret_cast<TShortDirEntry*>(aClusterData);
   288 		if(iParent != NULL) {
   288 		if(iParent != NULL) {
   289 			//Make 
   289 			//Make 
   290 			GetShortEntry(entry); 
   290 			GetShortEntry(entry); 			
   291 			//TODO: Add comments to avoid mistaken deleting.			
       
   292 			memcpy(entry->DIR_Name,".            ",sizeof(entry->DIR_Name));
   291 			memcpy(entry->DIR_Name,".            ",sizeof(entry->DIR_Name));
   293 			entry ++ ;
   292 			entry ++ ;
   294 			iParent->GetShortEntry(entry);
   293 			iParent->GetShortEntry(entry);
   295 			memcpy(entry->DIR_Name,"..           ",sizeof(entry->DIR_Name));
   294 			memcpy(entry->DIR_Name,"..           ",sizeof(entry->DIR_Name));
   296 			entry ++ ; 
   295 			entry ++ ;