]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
Initial work on virtual file system support for the WebKitGTK+ backend. It now suppor...
[wxWidgets.git] / src / common / fs_mem.cpp
index 6503834972df834212749f43f23770d2c7a8ad82..e306437de465ee11be4fbde3186805ad3ee035e0 100644 (file)
@@ -190,7 +190,7 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename,
     (
         filename,
         static_cast<const char *>(textdata.To8BitData()),
-        data.length(),
+        wxStrlen(static_cast<const char *>(textdata.To8BitData())),
         mimetype
     );
 }
@@ -253,7 +253,7 @@ wxMemoryFSHandler::AddFile(const wxString& filename,
         return;
 
     wxMemoryOutputStream mems;
-    if ( image.Ok() && image.SaveFile(mems, type) )
+    if ( image.IsOk() && image.SaveFile(mems, type) )
     {
         m_Hash[filename] = new wxMemoryFSFile
                                (