projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a very old bug nobody ever noticed: multiple About boxes :-)
[u/mdw/putty]
/
windlg.c
diff --git
a/windlg.c
b/windlg.c
index
1b800e8
..
60d1905
100644
(file)
--- a/
windlg.c
+++ b/
windlg.c
@@
-392,14
+392,12
@@
static int CALLBACK LicenceProc (HWND hwnd, UINT msg,
case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDOK:
- abtbox = NULL;
- DestroyWindow (hwnd);
+ EndDialog(hwnd, 1);
return 0;
}
return 0;
case WM_CLOSE:
- abtbox = NULL;
- DestroyWindow (hwnd);
+ EndDialog(hwnd, 1);
return 0;
}
return 0;