summaryrefslogtreecommitdiff
path: root/ace/OS_Dirent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_Dirent.cpp')
-rw-r--r--ace/OS_Dirent.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ace/OS_Dirent.cpp b/ace/OS_Dirent.cpp
index 8deeddeccc5..931a02d2799 100644
--- a/ace/OS_Dirent.cpp
+++ b/ace/OS_Dirent.cpp
@@ -53,11 +53,7 @@ ACE_OS_Dirent::readdir_emulation (DIR *d)
if (d->current_handle_ != INVALID_HANDLE_VALUE)
{
- ::FindClose (d->current_handle_);
- d->current_handle_ = INVALID_HANDLE_VALUE;
- }
- else // Skip "." and ".."
- {
+ // Skip "." and ".."
int retval = 1;
while (*(d->fdata_.cFileName) == '.'
&& retval