Index: code/fred2/fred.cpp
===================================================================
--- code/fred2/fred.cpp	(revision 8505)
+++ code/fred2/fred.cpp	(working copy)
@@ -254,7 +254,15 @@
 
 	m_nCmdShow = Main_wnd_data.p.showCmd;
 
-	OnFileNew();
+	//if we're opening a file, actually open it instead of just a new window
+	if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileOpen)
+	{
+		AfxGetApp()->OpenDocumentFile((LPCTSTR)cmdInfo.m_strFileName);
+	}
+	else
+	{
+		OnFileNew();
+	}
 
 	if(m_pMainWnd == NULL) return FALSE;
 
