* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if

end of directory condition is encountered as per SUSv2.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_process (fhandler_process::readdir): Ditto.
* fhandler_registry (fhandler_registry::readdir): Ditto.
This commit is contained in:
Christopher Faylor
2003-08-05 03:04:28 +00:00
parent 2f631ebc94
commit 3fea2e4087
5 changed files with 12 additions and 10 deletions

View File

@@ -331,7 +331,8 @@ retry:
{
RegCloseKey ((HKEY) dir->__d_u.__d_data.__handle);
dir->__d_u.__d_data.__handle = INVALID_HANDLE_VALUE;
seterrno_from_win_error (__FILE__, __LINE__, error);
if (error != ERROR_NO_MORE_ITEMS)
seterrno_from_win_error (__FILE__, __LINE__, error);
goto out;
}