]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Added Ok() member for print data, print dialog, page dialog, page dialog data
[wxWidgets.git] / 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,
         FILETIME ftAccess, ftCreate, ftWrite;
 
         if ( ::GetFileTime(fh,
-                           dtMod ? &ftCreate : NULL,
+                           dtCreate ? &ftCreate : NULL,
                            dtAccess ? &ftAccess : 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 ( dtAccess )
                 ConvertFileTimeToWx(dtAccess, ftAccess);
-            if ( dtCreate )
-                ConvertFileTimeToWx(dtCreate, ftWrite);
+            if ( dtMod )
+                ConvertFileTimeToWx(dtMod, ftWrite);
 
             return TRUE;
         }
 
             return TRUE;
         }