fixed wxFileName::GetModificationTime()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e94e53ac8f
commit
81be7e075d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user