fixed bug in GetMimeType under win
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
49841b74a4
commit
86a9c8e02f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user