File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -640,6 +640,7 @@ bool ProjectGenerator::passProgramMake()
640640 while (checks >= 1 ) {
641641 // Open the input Makefile
642642 string makeFile = m_projectDir + " MakeFile" ;
643+ m_inputFile.close ();
643644 m_inputFile.open (makeFile);
644645 if (!m_inputFile.is_open ()) {
645646 outputError (" Could not open open MakeFile (" + makeFile + " )" );
@@ -697,7 +698,7 @@ bool ProjectGenerator::passProgramMake()
697698 }
698699 }
699700 } else if (((findPos = m_inLine.find (" OBJS-$(1)" )) != string::npos) && (findPos == 0 )) {
700- m_inLine = m_inLine.substr (findPos + 5 , m_inLine.find (" .o" , findPos + 9 ) + 2 - (findPos + 5 ));
701+ m_inLine = m_inLine.substr (findPos + 5 , m_inLine.rfind (" .o" ) + 2 - (findPos + 5 ));
701702 if (m_inLine.at (4 ) == ' -' ) {
702703 // Found some dynamic c includes
703704 if (!passDCInclude ()) {
You can’t perform that action at this time.
0 commit comments