]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix-memory-alloc-srv-cfg-wizard-20031206
authorJeffrey Altman <jaltman@grand.central.org>
Sat, 6 Dec 2003 19:29:31 +0000 (19:29 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 6 Dec 2003 19:29:31 +0000 (19:29 +0000)
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

index b43854b09333c62674487f6790db2c8346f2c339..dc4999a37097962f246708677f9f8e469ceaa344 100644 (file)
@@ -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);