From: Vadim Zeitlin Date: Sun, 28 May 2006 22:40:37 +0000 (+0000) Subject: check for ERROR_NO_MORE_FILES error code from FindFirstFile() as it's not really... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5613bc20ed8fbd2736f96bc1ecb98977870448d0 check for ERROR_NO_MORE_FILES error code from FindFirstFile() as it's not really an error (patch 1481895) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dir.cpp b/src/msw/dir.cpp index 79635bd446..3fd7ebb9d4 100644 --- a/src/msw/dir.cpp +++ b/src/msw/dir.cpp @@ -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());