X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9099600a456181adfd1df13c387007d4f3f71a3e..HEAD:/windows/winhelp.c diff --git a/windows/winhelp.c b/windows/winhelp.c index 078b724e..8b652c7b 100644 --- a/windows/winhelp.c +++ b/windows/winhelp.c @@ -55,7 +55,7 @@ void init_help(void) } else chm_path = NULL; if (chm_path) { - HINSTANCE dllHH = LoadLibrary("hhctrl.ocx"); + HINSTANCE dllHH = load_system32_dll("hhctrl.ocx"); GET_WINDOWS_FUNCTION(dllHH, HtmlHelpA); if (!p_HtmlHelpA) { chm_path = NULL; @@ -81,7 +81,7 @@ int has_help(void) * unrealistic, since even Vista will have it if the user * specifically downloads it. */ - return (help_path + return (help_path != NULL #ifndef NO_HTMLHELP || chm_path #endif /* NO_HTMLHELP */