summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-08-07 14:12:29 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-08-07 14:12:29 +0000
commit9045af4eedac8be569520abce68d8557d6b36be5 (patch)
tree039190a86cbb55e0b0bf01d10426199abe66bf30
parent5a35ba1b85320dde09a411326655e8219711dd57 (diff)
downloadlibapr-9045af4eedac8be569520abce68d8557d6b36be5.tar.gz
mention some problems with apr_dir_rewind() for Win32
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62116 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--file_io/win32/dir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/file_io/win32/dir.c b/file_io/win32/dir.c
index b206dfb49..cc048737c 100644
--- a/file_io/win32/dir.c
+++ b/file_io/win32/dir.c
@@ -257,6 +257,12 @@ APR_DECLARE(apr_status_t) apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted,
APR_DECLARE(apr_status_t) apr_dir_rewind(apr_dir_t *dir)
{
+ /* XXX FIXME...
+ * 1) dir_cleanup() does FindClose(), so the FindClose() call
+ * here will always return a meaningless error (bad handle).
+ * 2) Don't we need to re-open the directory, or is there a
+ * Win32 way to rewind?
+ */
dir_cleanup(dir);
if (!FindClose(dir->dirhand)) {
return apr_get_os_error();