X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..1dde66dda68a3d712d2f4de0388c4bb3a3375b36:/src/msw/helpchm.cpp diff --git a/src/msw/helpchm.cpp b/src/msw/helpchm.cpp index 2871a9f782..cf90de12e9 100644 --- a/src/msw/helpchm.cpp +++ b/src/msw/helpchm.cpp @@ -80,9 +80,8 @@ static void UnloadHtmlHelpLibrary() { if ( gs_htmlHelp ) { - wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") ); - - gs_htmlHelp = 0; + if (wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") )) + gs_htmlHelp = 0; } }