From: Jeffrey Altman Date: Sat, 6 Dec 2003 19:29:31 +0000 (+0000) Subject: fix-memory-alloc-srv-cfg-wizard-20031206 X-Git-Tag: openafs-devel-1_3_51~39 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=334f5f00f109dddeba5f9c5e09088302c51b4b16 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. --- diff --git a/src/WINNT/afssvrcfg/get_cur_config.cpp b/src/WINNT/afssvrcfg/get_cur_config.cpp index b43854b..dc4999a 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);