]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxFileName::GetModificationTime()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Apr 2002 11:05:42 +0000 (11:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Apr 2002 11:05:42 +0000 (11:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index a80b0c8f92f21615d764462700df8af758b502ae..5d19924436441740c55ee88437b4d0a68d56a8bc 100644 (file)
@@ -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;
         }