X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinhelp.c;h=8b652c7b15eb49c9f80fd20f34857fe2b7b9310d;hb=3e22c99c9a3c28e042f2dc3a50fadf95e7c277e7;hp=078b724efc8f2d3efa861ca4fd6fff97687c80f1;hpb=b85038d8a9dbe197996d58b72d70df8fda3726a4;p=PuTTY.git 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 */