mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
67d3791de8
With this change, we stop expecting to find putty.chm alongside the executable file. That was a security hazard comparable to DLL hijacking, because of the risk that a malicious CHM file could be dropped into the same directory as putty.exe (e.g. if someone ran PuTTY from their browser's download dir).. Instead, the standalone putty.exe (and other binaries needing help) embed the proper CHM file within themselves, as a Windows resource, and if called on to display the help then they write the file out to a temporary location. This has the advantage that if you download and run the standalone putty.exe then you actually _get_ help, which previously didn't happen! The versions of the binaries in the installer don't each contain a copy of the help file; that would be extravagant. Instead, the installer itself writes a registry entry pointing at the proper help file, and the executables will look there. Another effect of this commit is that I've withdrawn support for the older .HLP format completely. It's now entirely outdated, and supporting it through this security fix would have been a huge pain.
36 lines
753 B
C
36 lines
753 B
C
/*
|
|
* win_res.h - constants shared between win_res.rc2 and the C code.
|
|
*/
|
|
|
|
#ifndef PUTTY_WIN_RES_H
|
|
#define PUTTY_WIN_RES_H
|
|
|
|
#define IDI_MAINICON 200
|
|
#define IDI_CFGICON 201
|
|
|
|
#define IDD_MAINBOX 102
|
|
#define IDD_LOGBOX 110
|
|
#define IDD_ABOUTBOX 111
|
|
#define IDD_RECONF 112
|
|
#define IDD_LICENCEBOX 113
|
|
|
|
#define IDN_LIST 1001
|
|
#define IDN_COPY 1002
|
|
|
|
#define IDA_ICON 1001
|
|
#define IDA_TEXT 1002
|
|
#define IDA_LICENCE 1003
|
|
#define IDA_WEB 1004
|
|
|
|
#define IDC_TAB 1001
|
|
#define IDC_TABSTATIC1 1002
|
|
#define IDC_TABSTATIC2 1003
|
|
#define IDC_TABLIST 1004
|
|
#define IDC_HELPBTN 1005
|
|
#define IDC_ABOUT 1006
|
|
|
|
#define ID_CUSTOM_CHMFILE 2000
|
|
#define TYPE_CUSTOM_CHMFILE 2000
|
|
|
|
#endif
|