BigW Consortium Gitlab

Commit 62c307d6 by Gabor Kiss-Vamosi

lv_fs: lv_dir_open: bugifx (use rddir_size instead of file_fize)

parent 1c347770
...@@ -285,7 +285,7 @@ lv_fs_res_t lv_fs_dir_open(lv_fs_dir_t * rddir_p, const char * path) ...@@ -285,7 +285,7 @@ lv_fs_res_t lv_fs_dir_open(lv_fs_dir_t * rddir_p, const char * path)
return LV_FS_RES_NOT_EX; return LV_FS_RES_NOT_EX;
} }
rddir_p->dir_d = lv_mem_alloc(rddir_p->drv->file_size); rddir_p->dir_d = lv_mem_alloc(rddir_p->drv->rddir_size);
if(rddir_p->dir_d == NULL) { if(rddir_p->dir_d == NULL) {
rddir_p->dir_d = NULL; rddir_p->dir_d = NULL;
return LV_FS_RES_OUT_OF_MEM; /* Out of memory */ return LV_FS_RES_OUT_OF_MEM; /* Out of memory */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment