]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winhelp.c
Make some static text in GTK dialogs selectable.
[PuTTY.git] / windows / winhelp.c
index a8d63a50a53a5bd669a4bb8d4559e8b1b7e69f16..64f6ad4597ac1dad4609e57e878a3ff5684bb27d 100644 (file)
@@ -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 */
@@ -105,7 +105,7 @@ void launch_help(HWND hwnd, const char *topic)
 #endif /* NO_HTMLHELP */
        if (help_path) {
            char *cmd = dupprintf("JI(`',`%.*s')", colonpos, topic);
-           WinHelp(hwnd, help_path, HELP_COMMAND, (DWORD)cmd);
+           WinHelp(hwnd, help_path, HELP_COMMAND, (ULONG_PTR)cmd);
            sfree(cmd);
        }
     } else {