X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e1c35f810f574af79e649fa37171dfa7fc775ee..1a1dac18e34ef7736c1e82f3ede88338e78824b6:/src/common/filename.cpp?ds=sidebyside diff --git a/src/common/filename.cpp b/src/common/filename.cpp index db586b2f6a..5d19924436 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -1220,7 +1220,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const } } - if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() && fullpath.Last() != wxFILE_SEP_PATH) + if ( (flags & wxPATH_GET_SEPARATOR) && !fullpath.empty() && fullpath.Last() != GetPathSeparator(format)) { fullpath += GetPathSeparator(format); } @@ -1663,16 +1663,16 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess, FILETIME ftAccess, ftCreate, ftWrite; if ( ::GetFileTime(fh, - dtMod ? &ftCreate : NULL, + dtCreate ? &ftCreate : NULL, dtAccess ? &ftAccess : NULL, - dtCreate ? &ftWrite : NULL) ) + dtMod ? &ftWrite : NULL) ) { - if ( dtMod ) - ConvertFileTimeToWx(dtMod, ftCreate); + if ( dtCreate ) + ConvertFileTimeToWx(dtCreate, ftCreate); if ( dtAccess ) ConvertFileTimeToWx(dtAccess, ftAccess); - if ( dtCreate ) - ConvertFileTimeToWx(dtCreate, ftWrite); + if ( dtMod ) + ConvertFileTimeToWx(dtMod, ftWrite); return TRUE; }