Compile fix for MinGW32
authorRobert Roebling <robert@roebling.de>
Sun, 31 Mar 2002 12:06:08 +0000 (12:06 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 31 Mar 2002 12:06:08 +0000 (12:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 08bebb725b3283e42cb268509444a76cb1cfba99..bc37751bbf05fc99be2226df95d9659c31446f73 100644 (file)
@@ -197,8 +197,9 @@ private:
 
 static void ConvertFileTimeToWx(wxDateTime *dt, const FILETIME &ft)
 {
+    FILETIME ftcopy = ft;
     FILETIME ftLocal;
-    if ( !::FileTimeToLocalFileTime(&ft, &ftLocal) )
+    if ( !::FileTimeToLocalFileTime(&ftcopy, &ftLocal) )
     {
         wxLogLastError(_T("FileTimeToLocalFileTime"));
     }