Allow for WinCE drive-less single backslash

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-11-01 15:29:58 +00:00
parent b94db696c2
commit 4de1b652ea

View File

@@ -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);