mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-15 02:09:22 +08:00
fix romfs lseek issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1663 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -119,7 +119,7 @@ int dfs_romfs_read(struct dfs_fd* file, void *buf, rt_size_t count)
|
||||
|
||||
int dfs_romfs_lseek(struct dfs_fd* file, rt_off_t offset)
|
||||
{
|
||||
if (offset < file->size)
|
||||
if (offset <= file->size)
|
||||
{
|
||||
file->pos = offset;
|
||||
return file->pos;
|
||||
|
||||
Reference in New Issue
Block a user