X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ce986140a05c46a1d9deb8e8c056128d9ed201d..0a7ce61e65c6fffcc8ab1649ab29c08d90e13fdb:/src/common/filesys.cpp?ds=inline diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 9e91441d04..94a229f49c 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -69,27 +69,27 @@ wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location) wxEmptyString, wxEmptyString, _T("JPEG image (from fallback)"), - _T("jpg"), _T("jpeg"), _T("JPG"), _T("JPEG"), NULL), + _T("jpg"), _T("jpeg"), _T("JPG"), _T("JPEG"), 0), wxFileTypeInfo(_T("image/gif"), wxEmptyString, wxEmptyString, _T("GIF image (from fallback)"), - _T("gif"), _T("GIF"), NULL), + _T("gif"), _T("GIF"), 0), wxFileTypeInfo(_T("image/png"), wxEmptyString, wxEmptyString, _T("PNG image (from fallback)"), - _T("png"), _T("PNG"), NULL), + _T("png"), _T("PNG"), 0), wxFileTypeInfo(_T("image/bmp"), wxEmptyString, wxEmptyString, _T("windows bitmap image (from fallback)"), - _T("bmp"), _T("BMP"), NULL), + _T("bmp"), _T("BMP"), 0), wxFileTypeInfo(_T("text/html"), wxEmptyString, wxEmptyString, _T("HTML document (from fallback)"), - _T("htm"), _T("html"), _T("HTM"), _T("HTML"), NULL), + _T("htm"), _T("html"), _T("HTM"), _T("HTML"), 0), // must terminate the table with this! wxFileTypeInfo() }; @@ -398,7 +398,7 @@ wxFSFile* wxFileSystem::OpenFile(const wxString& location, int flags) meta = 0; for (i = 0; i < ln; i++) { - switch (loc[i]) + switch ( loc[i].GetValue() ) { case wxT('/') : case wxT(':') : case wxT('#') : meta = loc[i];