X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinhelp.c;h=64f6ad4597ac1dad4609e57e878a3ff5684bb27d;hb=21101c7397e460933635a7bfed813864fc4f88fe;hp=a8d63a50a53a5bd669a4bb8d4559e8b1b7e69f16;hpb=9f274bed919de23335499926f4abbea45e0e495b;p=PuTTY.git diff --git a/windows/winhelp.c b/windows/winhelp.c index a8d63a50..64f6ad45 100644 --- a/windows/winhelp.c +++ b/windows/winhelp.c @@ -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 {