X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa2b06e7b1196bffc4e2f57ff710538e66118c32..f2049b683752950d1fe91aec07318e7f2122ff16:/src/common/fs_mem.cpp diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index 6503834972..e306437de4 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -190,7 +190,7 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename, ( filename, static_cast(textdata.To8BitData()), - data.length(), + wxStrlen(static_cast(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 (