projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Repair the delete-saved-session button (trivial braino).
[u/mdw/putty]
/
puttygen.c
diff --git
a/puttygen.c
b/puttygen.c
index
42af397
..
dff3b4d
100644
(file)
--- a/
puttygen.c
+++ b/
puttygen.c
@@
-14,6
+14,10
@@
#include "ssh.h"
#include "winstuff.h"
#include "ssh.h"
#include "winstuff.h"
+#ifdef MSVC4
+#define ICON_BIG 1
+#endif
+
#define WM_DONEKEY (WM_XUSER + 1)
#define DEFAULT_KEYSIZE 1024
#define WM_DONEKEY (WM_XUSER + 1)
#define DEFAULT_KEYSIZE 1024
@@
-293,7
+297,7
@@
static int CALLBACK AboutProc(HWND hwnd, UINT msg,
return 0;
case 101:
EnableWindow(hwnd, 0);
return 0;
case 101:
EnableWindow(hwnd, 0);
- DialogBox(hinst, MAKEINTRESOURCE(214),
NULL
, LicenceProc);
+ DialogBox(hinst, MAKEINTRESOURCE(214),
hwnd
, LicenceProc);
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;
@@
-813,6
+817,8
@@
static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
*/
}
requested_help = FALSE;
*/
}
requested_help = FALSE;
+ SendMessage(hwnd, WM_SETICON, (WPARAM) ICON_BIG,
+ (LPARAM) LoadIcon(hinst, MAKEINTRESOURCE(200)));
state = smalloc(sizeof(*state));
state->generation_thread_exists = FALSE;
state = smalloc(sizeof(*state));
state->generation_thread_exists = FALSE;
@@
-1029,7
+1035,7
@@
static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
break;
case IDC_ABOUT:
EnableWindow(hwnd, 0);
break;
case IDC_ABOUT:
EnableWindow(hwnd, 0);
- DialogBox(hinst, MAKEINTRESOURCE(213),
NULL
, AboutProc);
+ DialogBox(hinst, MAKEINTRESOURCE(213),
hwnd
, AboutProc);
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;
EnableWindow(hwnd, 1);
SetActiveWindow(hwnd);
return 0;