[commit] r1651 - trunk/GME/Console

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Oct 27 17:50:04 CDT 2011


Author: ksmyth
Date: Thu Oct 27 17:50:04 2011
New Revision: 1651

Log:
Check return of browser Create call. Fails on systems without Internet Explorer (e.g. Server Core)

Modified:
   trunk/GME/Console/ConsoleCtl.cpp

Modified: trunk/GME/Console/ConsoleCtl.cpp
==============================================================================
--- trunk/GME/Console/ConsoleCtl.cpp	Wed Oct 26 12:18:14 2011	(r1650)
+++ trunk/GME/Console/ConsoleCtl.cpp	Thu Oct 27 17:50:04 2011	(r1651)
@@ -432,13 +432,11 @@
 		return -1;
 	
 	CRect rect(0,0,0,0);
-	// create an input controll too
-	m_browser.Create(NULL, 
-		_T("GME Console"), 
-		(WS_VISIBLE | WS_CHILD), 
-		rect, 
-		this, 
-		IDD_BROWSER);
+	// create an input control too
+	if (!m_browser.Create(NULL, _T("GME Console"), (WS_VISIBLE | WS_CHILD), 
+		rect, this, IDD_BROWSER))
+		// FIXME: warn user that GME requires IE (e.g. Windows Server Core 2008R2)
+		return -1;
 	m_browser.LoadFromResource(_T("BLANK.HTML"));
 
 	m_edit.Create((ES_AUTOHSCROLL | WS_VISIBLE | WS_CHILD), rect, this, IDD_EDIT);


More information about the gme-commit mailing list