From 84417fed492acb626f57444f0f22d77af9e56af2 Mon Sep 17 00:00:00 2001 From: Ezekiel Bethel Date: Thu, 18 Jun 2020 03:42:13 +0100 Subject: [PATCH] fix return value of romfs_stat for non-existent files/directories --- nx/source/runtime/devices/romfs_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/runtime/devices/romfs_dev.c b/nx/source/runtime/devices/romfs_dev.c index b1e4c7f0..31759e8a 100644 --- a/nx/source/runtime/devices/romfs_dev.c +++ b/nx/source/runtime/devices/romfs_dev.c @@ -804,7 +804,7 @@ int romfs_stat(struct _reent *r, const char *path, struct stat *st) } r->_errno = ENOENT; - return 1; + return -1; } int romfs_chdir(struct _reent *r, const char *path)