From 86a9c8e02f2a24d6b81009d5a6dd9ef1b6c3ed7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 14 Mar 1999 12:41:17 +0000 Subject: [PATCH] fixed bug in GetMimeType under win git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/mimetype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }