pull up r19473 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 17 Apr 2007 23:09:02 +0000 (23:09 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 17 Apr 2007 23:09:02 +0000 (23:09 +0000)
 r19473@cathode-dark-space:  jaltman | 2007-04-15 10:51:30 -0400
 ticket: 5530

 The about dialog box did not respond to Alt-F4 because the
 WM_CLOSE message was not being processed.

ticket: 5530
version_fixed: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19484 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/identity/ui/aboutwnd.c

index f4dcfcc5e1d5b0aaa2fdf80474008573343e0b84..68aef02773b39e687872576d40a2d0dd5e795c14 100644 (file)
@@ -124,6 +124,11 @@ about_dlg_proc(HWND hwnd,
         khm_del_dialog(hwnd);\r
         return TRUE;\r
 \r
+    case WM_CLOSE:\r
+        khm_leave_modal();\r
+        DestroyWindow(hwnd);\r
+        return TRUE;\r
+\r
     case WM_COMMAND:\r
         if (wParam == MAKEWPARAM(IDOK, BN_CLICKED)) {\r
             khm_leave_modal();\r