From: Tom Yu Date: Mon, 12 Dec 2011 20:47:14 +0000 (+0000) Subject: kfw leash: fix bad data in get tickets dialog when -autoinit specified X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac77dcbfd828840112cd6a172a802835c4f917f4;p=krb5.git 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 --- diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp index 1f12e913e..0c68faf5e 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;