]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
Don't use mnemonic for Cancel button under MSW.
[wxWidgets.git] / src / common / fs_mem.cpp
index 9cd5628f86cee4063583a3b131a1a8d66b11f36c..3ad28089e663f8bac2fbd979096e2f1f5950ddd3 100644 (file)
@@ -186,9 +186,13 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename,
                                                 const wxString& textdata,
                                                 const wxString& mimetype)
 {
-    AddFileWithMimeType(filename,
-                        (const void*) textdata.mb_str(), textdata.length(),
-                        mimetype);
+    AddFileWithMimeType
+    (
+        filename,
+        static_cast<const char *>(textdata.To8BitData()),
+        wxStrlen(static_cast<const char *>(textdata.To8BitData())),
+        mimetype
+    );
 }