#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());
wxGetDirectoryTimes(const wxString& dirname,
FILETIME *ftAccess, FILETIME *ftCreate, FILETIME *ftMod)
{
+#ifdef __WXWINCE__
+ // FindFirst() is going to fail
+ wxASSERT_MSG( !dirname.empty(),
+ _T("incorrect directory name format in wxGetDirectoryTimes") );
+#else
// FindFirst() is going to fail
wxASSERT_MSG( !dirname.empty() && dirname.Last() != _T('\\'),
_T("incorrect directory name format in wxGetDirectoryTimes") );
+#endif
FIND_STRUCT fs;
FIND_DATA fd = FindFirst(dirname, &fs);