[commit] r2027 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Aug 16 12:31:42 CDT 2012


Author: ksmyth
Date: Thu Aug 16 12:31:38 2012
New Revision: 2027

Log:
Fix gme.exe /regserver

Modified:
   trunk/GME/Gme/GMEApp.cpp

Modified: trunk/GME/Gme/GMEApp.cpp
==============================================================================
--- trunk/GME/Gme/GMEApp.cpp	Thu Aug 16 11:31:01 2012	(r2026)
+++ trunk/GME/Gme/GMEApp.cpp	Thu Aug 16 12:31:38 2012	(r2027)
@@ -289,7 +289,7 @@
 	CGMECommandLineInfo cmdInfo;
 	ParseCommandLine(cmdInfo);
 	
-	if( cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen )
+	if( cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen || cmdInfo.m_nShellCommand == CCommandLineInfo::AppRegister)
 		cmdInfo.m_bShowSplash = false;
 
 	CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);
@@ -429,6 +429,10 @@
 	// Make sure the type library is registered or dual interface won't work.
 	AfxOleRegisterTypeLib(AfxGetInstanceHandle(), __uuidof(__GmeLib));
 
+	// Dispatch commands specified on the command line
+	if ((cmdInfo.m_nShellCommand == CCommandLineInfo::AppRegister || cmdInfo.m_nShellCommand == CCommandLineInfo::AppUnregister) && !ProcessShellCommand(cmdInfo))
+		return FALSE;
+
 	// The main window has been initialized, so show and update it.
 	pMainFrame->ShowWindow(m_nCmdShow);
 	pMainFrame->UpdateWindow();
@@ -499,6 +503,8 @@
 	// We don't want a new document at startup
 	if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
 		cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
+	if (cmdInfo.m_nShellCommand == CCommandLineInfo::AppRegister)
+		cmdInfo.bOpenLast = true;
 	if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen)
 	{
 		CString conn = cmdInfo.m_strFileName;


More information about the gme-commit mailing list