]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_inet.cpp
some != NULL checks
[wxWidgets.git] / src / common / fs_inet.cpp
index 05bf75c3486c06ef5217b36229fe837e56356c52..d3b94f258d20c253c343d541f2c6e2b98a63290f 100644 (file)
@@ -34,7 +34,7 @@ limitation)
     #define wxUSE_FS_INET 0
 #endif
 
-#if wxUSE_FS_INET
+#if wxUSE_FILESYSTEM && wxUSE_FS_INET
 
 #ifndef WXPRECOMP
 #include "wx/wx.h"
@@ -146,7 +146,7 @@ wxFSFile* wxInternetFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxStri
                             right,
                             info->GetMime(),
                             GetAnchor(location),
-                            wxDateTime::Today());
+                            wxDateTime::Now());
     }
     else return (wxFSFile*) NULL;
 }
@@ -182,4 +182,4 @@ class wxFileSystemInternetModule : public wxModule
 
 IMPLEMENT_DYNAMIC_CLASS(wxFileSystemInternetModule, wxModule)
 
-#endif // wxUSE_FS_INET
+#endif // wxUSE_FILESYSTEM && wxUSE_FS_INET