1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-07 14:25:40 -05:00

Minor reorganisations to WinHelp support. (Done as part of a - failed -

attempt to fix `winhelp-crash', but we may as well keep them.)

[originally from svn r5314]
This commit is contained in:
Jacob Nevins
2005-02-16 01:47:10 +00:00
parent 2487b41777
commit db19a6aff1
4 changed files with 29 additions and 22 deletions

View File

@ -340,13 +340,13 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
if (p && p >= r) r = p+1;
q = strrchr(b, ':');
if (q && q >= r) r = q+1;
strcpy(r, "putty.hlp");
strcpy(r, PUTTY_HELP_FILE);
if ( (fp = fopen(b, "r")) != NULL) {
help_path = dupstr(b);
fclose(fp);
} else
help_path = NULL;
strcpy(r, "putty.cnt");
strcpy(r, PUTTY_HELP_CONTENTS);
if ( (fp = fopen(b, "r")) != NULL) {
help_has_contents = TRUE;
fclose(fp);