]> git.saurik.com Git - wxWidgets.git/commitdiff
check for ERROR_NO_MORE_FILES error code from FindFirstFile() as it's not really...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 May 2006 22:40:37 +0000 (22:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 May 2006 22:40:37 +0000 (22:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dir.cpp

index 79635bd446e01c059d2ebc64f3bdacb9a3a3b976..3fd7ebb9d47818b78a8c09f304f05e88371f21dd 100644 (file)
@@ -196,7 +196,7 @@ bool wxDirData::Read(wxString *filename)
 #ifdef __WIN32__
         DWORD err = ::GetLastError();
 
-        if ( err != ERROR_FILE_NOT_FOUND )
+        if ( err != ERROR_FILE_NOT_FOUND && err != ERROR_NO_MORE_FILES )
         {
             wxLogSysError(err, _("Can not enumerate files in directory '%s'"),
                           m_dirname.c_str());