From 334f5f00f109dddeba5f9c5e09088302c51b4b16 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 6 Dec 2003 19:29:31 +0000 Subject: [PATCH] fix-memory-alloc-srv-cfg-wizard-20031206 The Windows AFS Server Config Wizard would produce an invalid memory deallocation error from the memory management routines due to the failure to allocate PROGRESSDISPLAY objects with the same tools used to deallocate them. --- src/WINNT/afssvrcfg/get_cur_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afssvrcfg/get_cur_config.cpp b/src/WINNT/afssvrcfg/get_cur_config.cpp index b43854b09..dc4999a37 100644 --- a/src/WINNT/afssvrcfg/get_cur_config.cpp +++ b/src/WINNT/afssvrcfg/get_cur_config.cpp @@ -59,7 +59,7 @@ int GetCurrentConfig(HWND hParent, BOOL& bCanceled) bCancel = FALSE; bBakConfigured = FALSE; - pProg = new PROGRESSDISPLAY(hParent, IDD_GET_CURRENT_CONFIG, (DLGPROC)GetCurConfigDlgProc); + pProg = New2 (PROGRESSDISPLAY,(hParent, IDD_GET_CURRENT_CONFIG, (DLGPROC)GetCurConfigDlgProc)); pProg->SetProgressRange(0, MAX_STEPS); HWND hLogo = GetDlgItem(pProg->GetWindow(), IDC_LOGO); -- 2.39.5