apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r676929 - /apr/apr/branches/1.3.x/file_io/win32/dir.c
Date Tue, 15 Jul 2008 14:49:28 GMT
Author: wrowe
Date: Tue Jul 15 07:49:28 2008
New Revision: 676929

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

Backport: 676928

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

Modified: apr/apr/branches/1.3.x/file_io/win32/dir.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/file_io/win32/dir.c?rev=676929&r1=676928&r2=676929&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/file_io/win32/dir.c (original)
+++ apr/apr/branches/1.3.x/file_io/win32/dir.c Tue Jul 15 07:49:28 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();
             }
         }



Mime
View raw message