From ac77dcbfd828840112cd6a172a802835c4f917f4 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 12 Dec 2011 20:47:14 +0000 Subject: kfw leash: fix bad data in get tickets dialog when -autoinit specified Signed-off-by: Kevin Wasserman ticket: 7050 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25583 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/leash/Leash.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp index 1f12e913e3..0c68faf5ed 100644 --- a/src/windows/leash/Leash.cpp +++ b/src/windows/leash/Leash.cpp @@ -241,7 +241,7 @@ BOOL CLeashApp::InitInstance() } ReleaseMutex(ticketinfo.lockObj); - ldi.size = sizeof(ldi); + ldi.size = LSH_DLGINFO_EX_V1_SZ; ldi.dlgtype = DLGTYPE_PASSWD; ldi.title = "Initialize Ticket"; ldi.username = username; @@ -1466,7 +1466,7 @@ CLeashApp::ObtainTicketsViaUserIfNeeded(HWND hWnd) ReleaseMutex(m_tgsReqMutex); #endif LSH_DLGINFO_EX ldi; - ldi.size = sizeof(ldi); + ldi.size = LSH_DLGINFO_EX_V1_SZ; ldi.dlgtype = DLGTYPE_PASSWD; ldi.title = "Initialize Ticket"; ldi.username = NULL; @@ -1499,7 +1499,7 @@ CLeashApp::ObtainTicketsViaUserIfNeeded(HWND hWnd) ReleaseMutex(m_tgsReqMutex); #endif LSH_DLGINFO_EX ldi; - ldi.size = sizeof(ldi); + ldi.size = LSH_DLGINFO_EX_V1_SZ; ldi.dlgtype = DLGTYPE_PASSWD; ldi.title = "Initialize Ticket"; ldi.username = NULL; @@ -1525,7 +1525,7 @@ CLeashApp::ObtainTicketsViaUserIfNeeded(HWND hWnd) ReleaseMutex(m_tgsReqMutex); #endif LSH_DLGINFO_EX ldi; - ldi.size = sizeof(ldi); + ldi.size = LSH_DLGINFO_EX_V1_SZ; ldi.dlgtype = DLGTYPE_PASSWD; ldi.title = "Initialize Ticket"; ldi.username = NULL; @@ -1623,7 +1623,7 @@ CLeashApp::InitWorker(void * hWnd) #endif if ( ProbeKDC() ) { LSH_DLGINFO_EX ldi; - ldi.size = sizeof(ldi); + ldi.size = LSH_DLGINFO_EX_V1_SZ; ldi.dlgtype = DLGTYPE_PASSWD; ldi.title = "Initialize Ticket"; ldi.username = NULL; -- cgit