]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winhelp.c
Fix another error-reporting bug, in which sk_newlistener would fail to
[PuTTY.git] / windows / winhelp.c
index 078b724efc8f2d3efa861ca4fd6fff97687c80f1..8b652c7b15eb49c9f80fd20f34857fe2b7b9310d 100644 (file)
@@ -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 */