]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
don't crash if conversion of a command line argument to Unicode fails
[wxWidgets.git] / src / common / fs_mem.cpp
index 5c983a1def81760c90e131154cf77af37562ced7..7475dfd1e9aa3881ffdd23afc4a7e380f8b3e652 100644 (file)
@@ -227,8 +227,10 @@ wxMemoryFSHandler::AddFile(const wxString& filename,
                            const wxBitmap& bitmap,
                            long type)
 {
+#if !defined(__WXMSW__) || wxUSE_WXDIB
     wxImage img = bitmap.ConvertToImage();
     AddFile(filename, img, type);
+#endif
 }
 
 #endif // wxUSE_IMAGE