[commit] r2083 - trunk/GME/MgaUtil

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Oct 18 10:30:35 CDT 2012


Author: ksmyth
Date: Thu Oct 18 10:30:35 2012
New Revision: 2083

Log:
Fix crash when ATL window cache is invalidated

Modified:
   trunk/GME/MgaUtil/MgaProgressDlg.cpp

Modified: trunk/GME/MgaUtil/MgaProgressDlg.cpp
==============================================================================
--- trunk/GME/MgaUtil/MgaProgressDlg.cpp	Thu Oct 18 10:30:25 2012	(r2082)
+++ trunk/GME/MgaUtil/MgaProgressDlg.cpp	Thu Oct 18 10:30:35 2012	(r2083)
@@ -136,7 +136,9 @@
 	if( dlg.m_hWnd == NULL )
 		COMRETURN(E_INVALID_USAGE);
 
-	dlg.GetParent()->EnableWindow(TRUE);
+	HWND hwndParent = ::GetParent(dlg.GetSafeHwnd());
+	if (hwndParent)
+		::EnableWindow(hwndParent, TRUE);
 
 	HWND hwnd = dlg.m_hWnd;
 	dlg.Detach();


More information about the gme-commit mailing list