[commit] r1763 - trunk/GME/Console

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Jan 4 14:34:14 CST 2012


Author: ksmyth
Date: Wed Jan  4 14:34:14 2012
New Revision: 1763

Log:
Fix crash on x64: fail to create script engine, then use improperly initialized state

Modified:
   trunk/GME/Console/ScriptHost.cpp

Modified: trunk/GME/Console/ScriptHost.cpp
==============================================================================
--- trunk/GME/Console/ScriptHost.cpp	Wed Jan  4 14:34:03 2012	(r1762)
+++ trunk/GME/Console/ScriptHost.cpp	Wed Jan  4 14:34:14 2012	(r1763)
@@ -27,9 +27,9 @@
 			COMTHROW(m_iscript->Close());
 			m_iscript.Release();
 		}
-		m_enginePID = newprogid;
 		// FIXME: throw a better error message
-		COMTHROW(m_iscript.CreateInstance((BSTR)m_enginePID));
+		COMTHROW(m_iscript.CreateInstance((BSTR)newprogid, NULL, CLSCTX_ALL));
+		m_enginePID = newprogid;
 		m_iscriptParse = m_iscript;
 		IActiveScriptSitePtr scs(this);
 		COMTHROW(m_iscript->SetScriptSite(scs));


More information about the gme-commit mailing list