]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
applied patch 419155 (OLE x-compilation with mingw)
[wxWidgets.git] / src / common / fs_mem.cpp
index bc089b0990f7f442bfe339ccf2554c6f15fb1f75..588dc0cd233a05a85bb9d12fc4afcf19da1b0d23 100644 (file)
@@ -27,7 +27,6 @@
 #include "wx/fs_mem.h"
 #include "wx/mstream.h"
 
-
 class MemFSHashObj : public wxObject
 {
     public:
@@ -159,13 +158,13 @@ bool wxMemoryFSHandler::CheckHash(const wxString& filename)
 
     
     wxMemoryOutputStream mems;
-    if (image.Ok() && image.SaveFile(mems, type))
+    if (image.Ok() && image.SaveFile(mems, (int)type))
         m_Hash -> Put(filename, new MemFSHashObj(mems));
     else
     {
         wxString s;
         s.Printf(_("Failed to store image '%s' to memory VFS!"), filename.c_str());
-        printf("'%s'\n", s.c_str());
+        wxPrintf(wxT("'%s'\n"), s.c_str());
         wxLogError(s);
     }
 }