From bda15976a8a5e7b9bfb38fc22e68ddbd606fbb3e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 29 Sep 2000 08:42:55 +0000 Subject: [PATCH] Fix a very old bug nobody ever noticed: multiple About boxes :-) [originally from svn r647] --- windlg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/windlg.c b/windlg.c index 1b800e87..60d19052 100644 --- 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;