mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
Fixed handling for non existing files.
svn path=/trunk/; revision=2808
This commit is contained in:
parent
ea5f41e8a5
commit
e806f90b71
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ int _stat(const char *path, struct stat *buffer)
|
|||
int fd = _open(path,_O_RDONLY);
|
||||
int ret;
|
||||
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
|
||||
ret = fstat(fd,buffer);
|
||||
_close(fd);
|
||||
|
||||
|
|
Loading…
Reference in a new issue