* fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Simplify

conditional.
This commit is contained in:
Corinna Vinschen
2006-01-30 13:44:16 +00:00
parent 5c25715276
commit ca986c6bf8
2 changed files with 6 additions and 1 deletions

View File

@ -1767,7 +1767,7 @@ fhandler_disk_file::rewinddir (DIR *dir)
{
if (wincap.is_winnt ())
d_cachepos (dir) = 0;
if (!wincap.is_winnt () && dir->__handle != INVALID_HANDLE_VALUE)
else if (dir->__handle != INVALID_HANDLE_VALUE)
{
if (dir->__handle)
FindClose (dir->__handle);