diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-12-08 04:44:58 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-12-08 04:44:58 +0000 |
commit | f1b88b4dab842f7ff77f1249904779714c71a0bf (patch) | |
tree | 0b26be4083134b21af463fd9e9d442227f4b52db /ace/OS_Dirent.inl | |
parent | 8dd93407ef747976a1ce8f0b455de1a028c2e723 (diff) | |
download | ATCD-f1b88b4dab842f7ff77f1249904779714c71a0bf.tar.gz |
ChangeLogTag:Thu Dec 5 20:30:56 2002 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'ace/OS_Dirent.inl')
-rw-r--r-- | ace/OS_Dirent.inl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ace/OS_Dirent.inl b/ace/OS_Dirent.inl index 1fede13caaf..c1f227fbb78 100644 --- a/ace/OS_Dirent.inl +++ b/ace/OS_Dirent.inl @@ -99,7 +99,10 @@ ACE_OS_Dirent::readdir_r (ACE_DIR *dirp, ACE_UNUSED_ARG (entry); // <result> has better not be 0! *result = ACE_OS_Dirent::readdir (dirp); - return 0; + if (*result) + return 0; // Keep iterating + else + return 1; // Oops, some type of error! #elif defined (ACE_HAS_DIRENT) && !defined (ACE_LACKS_READDIR_R) # if (defined (sun) && (defined (_POSIX_PTHREAD_SEMANTICS) || \ (_FILE_OFFSET_BITS == 64))) || \ |