diff --git a/reactos/lib/msvcrt/sys_stat/stat.c b/reactos/lib/msvcrt/sys_stat/stat.c index 7dc1b672a6c..c8c0c40ee5b 100644 --- a/reactos/lib/msvcrt/sys_stat/stat.c +++ b/reactos/lib/msvcrt/sys_stat/stat.c @@ -22,7 +22,7 @@ int _stat(const char* path, struct stat* buffer) if (strchr(path, '*') || strchr(path, '?')) { - __set_errno(EINVAL); + __set_errno(ENOENT); return -1; }