Process WM_CLOSE for the command-line option dialog
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 1 Oct 2007 16:15:39 +0000 (16:15 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 1 Oct 2007 16:15:39 +0000 (16:15 +0000)
ticket: 5798
tags: pullup
target_version: 1.6.3
component: windows

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20035 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/identity/ui/main.c

index 18b5bca84ed5f3d434fbc4199a1404d98c18aaa7..f8bcde882968ec110820436e7d79bcbd695b48a1 100644 (file)
@@ -1,6 +1,8 @@
 /*
  * Copyright (c) 2005 Massachusetts Institute of Technology
  *
+ * Copyright (2) 2007 Secure Endpoints Inc.
+ *
  * Permission is hereby granted, free of charge, to any person
  * obtaining a copy of this software and associated documentation
  * files (the "Software"), to deal in the Software without
@@ -173,6 +175,12 @@ khm_cmdline_dlg_proc(HWND hwnd,
         }
 
         return TRUE;
+
+    case WM_CLOSE:
+       
+       EndDialog(hwnd, KHM_ERROR_EXIT);
+       
+       return TRUE;
     }
 
     return FALSE;