You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2008/07/15 16:49:41 UTC

svn commit: r676930 - /apr/apr/branches/0.9.x/file_io/win32/dir.c

Author: wrowe
Date: Tue Jul 15 07:49:41 2008
New Revision: 676930

URL: http://svn.apache.org/viewvc?rev=676930&view=rev
Log:
Correct Win9x/ANSI mode flaw uncovered by Friedrich Dominicus
<frido q-software-solutions.de>.

Backport: 676928

Modified:
    apr/apr/branches/0.9.x/file_io/win32/dir.c

Modified: apr/apr/branches/0.9.x/file_io/win32/dir.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/file_io/win32/dir.c?rev=676930&r1=676929&r2=676930&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/file_io/win32/dir.c (original)
+++ apr/apr/branches/0.9.x/file_io/win32/dir.c Tue Jul 15 07:49:41 2008
@@ -195,13 +195,13 @@
              */
             thedir->bof = 0; 
         }
-        else if (!FindNextFile(thedir->dirhand, thedir->n.entry)) {
+        else if (!FindNextFileA(thedir->dirhand, thedir->n.entry)) {
             return apr_get_os_error();
         }
         while (thedir->rootlen &&
                thedir->rootlen + strlen(thedir->n.entry->cFileName) >= MAX_PATH)
         {
-            if (!FindNextFileW(thedir->dirhand, thedir->w.entry)) {
+            if (!FindNextFileA(thedir->dirhand, thedir->n.entry)) {
                 return apr_get_os_error();
             }
         }