]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in ConvertWxToFileTime (bug 525868)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Mar 2002 22:29:43 +0000 (22:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Mar 2002 22:29:43 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 99832bf9957d8852e6005e480415bc8cf70cb6a8..4f126db178822236116859d6aeabbbe2cf3c96bf 100644 (file)
@@ -208,8 +208,8 @@ static void ConvertWxToFileTime(FILETIME *ft, const wxDateTime& dt)
 {
     // do the reverse of ConvertFileTimeToWx()
     wxLongLong ll = dt.GetValue();
 {
     // do the reverse of ConvertFileTimeToWx()
     wxLongLong ll = dt.GetValue();
-    ll *= 10000;
     ll += FILETIME_EPOCH_OFFSET;
     ll += FILETIME_EPOCH_OFFSET;
+    ll *= 10000;
 
     ft->dwHighDateTime = ll.GetHi();
     ft->dwLowDateTime = ll.GetLo();
 
     ft->dwHighDateTime = ll.GetHi();
     ft->dwLowDateTime = ll.GetLo();