diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-31 20:30:36 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-31 20:30:36 +0000 |
commit | 18c04cc4b2cc8ed4afecec03bb4cf12f35312c36 (patch) | |
tree | 3319b890ca8d7e8642e893e4c8e13a61c337f22b /winsup/cygwin/fhandler_registry.cc | |
parent | ea55e3f7f3a213d4e3b5bdf966eecaf0aa1b7112 (diff) | |
download | cygnal-18c04cc4b2cc8ed4afecec03bb4cf12f35312c36.tar.gz cygnal-18c04cc4b2cc8ed4afecec03bb4cf12f35312c36.tar.bz2 cygnal-18c04cc4b2cc8ed4afecec03bb4cf12f35312c36.zip |
* fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more files.
* fhandler_process.cc (fhandler_process::readdir): Ditto.
* fhandler_registry.cc (fhandler_registry::readdir): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r-- | winsup/cygwin/fhandler_registry.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc index cbf73f58f..b4f0eeb59 100644 --- a/winsup/cygwin/fhandler_registry.cc +++ b/winsup/cygwin/fhandler_registry.cc @@ -266,8 +266,7 @@ retry: { RegCloseKey ((HKEY) dir->__d_u.__d_data.__handle); dir->__d_u.__d_data.__handle = INVALID_HANDLE_VALUE; - if (error != ERROR_NO_MORE_ITEMS) - seterrno_from_win_error (__FILE__, __LINE__, error); + seterrno_from_win_error (__FILE__, __LINE__, error); goto out; } |