IsDir() test is pretty useless, use DirExists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2216,7 +2216,7 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess,
|
||||
// not 9x
|
||||
bool ok;
|
||||
FILETIME ftAccess, ftCreate, ftWrite;
|
||||
if ( IsDir() )
|
||||
if ( DirExists() ) // Don't use IsDir, because it returns false even if it's a directory
|
||||
{
|
||||
// implemented in msw/dir.cpp
|
||||
extern bool wxGetDirectoryTimes(const wxString& dirname,
|
||||
|
Reference in New Issue
Block a user