possible fix for SF bug #1186144 (only VC tested)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott 2005-05-24 08:53:32 +00:00
parent 1b75cbf9b3
commit c8200b5a5e

View File

@ -79,7 +79,7 @@ static bool LoadHtmlHelpLibrary()
static void UnloadHtmlHelpLibrary()
{
if ( gs_htmlHelp )
{
{
if (wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") ))
gs_htmlHelp = 0;
}
@ -243,6 +243,7 @@ wxString wxCHMHelpController::GetValidFilename(const wxString& file) const
wxCHMHelpController::~wxCHMHelpController()
{
gs_htmlHelp(GetSuitableHWND(), 0, HH_CLOSE_ALL, 0L);
UnloadHtmlHelpLibrary();
}