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:
@@ -374,9 +374,15 @@ extern bool
|
|||||||
wxGetDirectoryTimes(const wxString& dirname,
|
wxGetDirectoryTimes(const wxString& dirname,
|
||||||
FILETIME *ftAccess, FILETIME *ftCreate, FILETIME *ftMod)
|
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
|
// FindFirst() is going to fail
|
||||||
wxASSERT_MSG( !dirname.empty() && dirname.Last() != _T('\\'),
|
wxASSERT_MSG( !dirname.empty() && dirname.Last() != _T('\\'),
|
||||||
_T("incorrect directory name format in wxGetDirectoryTimes") );
|
_T("incorrect directory name format in wxGetDirectoryTimes") );
|
||||||
|
#endif
|
||||||
|
|
||||||
FIND_STRUCT fs;
|
FIND_STRUCT fs;
|
||||||
FIND_DATA fd = FindFirst(dirname, &fs);
|
FIND_DATA fd = FindFirst(dirname, &fs);
|
||||||
|
Reference in New Issue
Block a user