Fix the memheap_realloc issue

This commit is contained in:
Bernard Xiong
2013-06-03 06:44:35 +08:00
parent 3c04d0b0a0
commit d80a471680
4 changed files with 128 additions and 66 deletions

View File

@@ -9,6 +9,7 @@
* Date Author Notes
* 2013-04-15 Bernard the first version
* 2013-05-05 Bernard remove CRC for ramfs persistence
* 2013-05-22 Bernard fix the no entry issue.
*/
#include <rtthread.h>
@@ -217,6 +218,7 @@ int dfs_ramfs_open(struct dfs_fd *file)
/* add to the root directory */
rt_list_insert_after(&(ramfs->root.list), &(dirent->list));
}
else return -DFS_STATUS_ENOENT;
}
/* Creates a new file. If the file is existing, it is truncated and overwritten. */