mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
fix return value of romfs_stat for non-existent files/directories (#488)
This commit is contained in:
parent
044eac2f3d
commit
d0a7c6a2a5
@ -804,7 +804,7 @@ int romfs_stat(struct _reent *r, const char *path, struct stat *st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
r->_errno = ENOENT;
|
r->_errno = ENOENT;
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int romfs_chdir(struct _reent *r, const char *path)
|
int romfs_chdir(struct _reent *r, const char *path)
|
||||||
|
Loading…
Reference in New Issue
Block a user