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
This commit is contained in:
@@ -196,7 +196,7 @@ bool wxDirData::Read(wxString *filename)
|
|||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
DWORD err = ::GetLastError();
|
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'"),
|
wxLogSysError(err, _("Can not enumerate files in directory '%s'"),
|
||||||
m_dirname.c_str());
|
m_dirname.c_str());
|
||||||
|
Reference in New Issue
Block a user