X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5613bc20ed8fbd2736f96bc1ecb98977870448d0..fcb29b233888f7012ca6cf486c8287f5463787e0:/src/msw/dir.cpp diff --git a/src/msw/dir.cpp b/src/msw/dir.cpp index 3fd7ebb9d4..42b0128b41 100644 --- a/src/msw/dir.cpp +++ b/src/msw/dir.cpp @@ -374,9 +374,15 @@ extern bool 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);