提交 0501055b 编写于 作者: J JING 提交者: Gitee

update source/ff.c.

上级 b88638fc
......@@ -1980,7 +1980,7 @@ DWORD dir_ofs (
#if FF_USE_LFN
UINT nlen, nent;
DWORD entry;
for (nlen = 0; fs->lfnbuf[nlen]; nlen++) ; /* Get lfn length */
for (nlen = 0; dp->obj.fs->lfnbuf[nlen]; nlen++) ; /* Get lfn length */
nent = (dp->fn[NSFLAG] & NS_LFN) ? (nlen + 12) / 13 + 1 : 1; /* Number of entries of the lfn */
entry = dp->dptr - (nent - 1) * SZDIRE;
return entry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册