From: Václav Slavík Date: Sun, 14 Mar 1999 12:41:17 +0000 (+0000) Subject: fixed bug in GetMimeType under win X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/86a9c8e02f2a24d6b81009d5a6dd9ef1b6c3ed7e fixed bug in GetMimeType under win git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp index 8e068c6f0f..c3cd168992 100644 --- a/src/common/mimetype.cpp +++ b/src/common/mimetype.cpp @@ -557,7 +557,7 @@ bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const { // suppress possible error messages wxLogNull nolog; - wxRegKey key(wxRegKey::HKCR, m_strFileType); + wxRegKey key(wxRegKey::HKCR, /*m_strFileType*/ "." + m_ext); if ( key.Open() && key.QueryValue("Content Type", *mimeType) ) { return TRUE; }