krb5 commit [krb5-1.10]: Fix window close issues

Tom Yu tlyu at MIT.EDU
Wed Aug 29 19:17:34 EDT 2012


https://github.com/krb5/krb5/commit/a8f8ebb4460eb7a1063350326eb223604ac0bd5c
commit a8f8ebb4460eb7a1063350326eb223604ac0bd5c
Author: Kevin Wasserman <kevin.wasserman at painless-security.com>
Date:   Tue Aug 7 13:53:02 2012 -0400

    Fix window close issues
    
    Stop filtering out SC_CLOSE. 'X' button works more reliably, also alt-F4.
    Remove minimize box from style.
    
    Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
    
    (cherry picked from commit 1b977a4e768b1a54ebffcecdf356e54e6fa86ce6)
    
    ticket: 7332
    status: resolved

 src/windows/leash/MainFrm.cpp |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/windows/leash/MainFrm.cpp b/src/windows/leash/MainFrm.cpp
index 5481586..1e22283 100644
--- a/src/windows/leash/MainFrm.cpp
+++ b/src/windows/leash/MainFrm.cpp
@@ -186,10 +186,6 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
 
 BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
 {
-    if ( pMsg->message == WM_SYSCOMMAND && (pMsg->wParam & 0xfff0) == SC_CLOSE )
-    {
-        return TRUE;
-    }
     return CLeashFrame::PreTranslateMessage(pMsg);
 }
 
@@ -197,7 +193,7 @@ BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
 {
 	// Use the specific class name we established earlier
     // Remove the Minimize and Maximize buttons
-//    cs.style &= ~WS_MINIMIZEBOX;
+    cs.style &= ~WS_MINIMIZEBOX;
     cs.style &= ~WS_MAXIMIZEBOX;
     // Initialize the extended window style to display a TaskBar entry with WS_EX_APPWINDOW
     cs.dwExStyle |= WS_EX_APPWINDOW;


More information about the cvs-krb5 mailing list