Ver Fonte

修复加载xml时,未更新命令数据的返回码。

jianfeng1.wang há 2 anos atrás
pai
commit
0e4312a0b2
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      TCLCommand/TCLCommand/Command.cpp

+ 3 - 0
TCLCommand/TCLCommand/Command.cpp

@@ -313,7 +313,10 @@ bool TCLCommand::ParseCommandsFromXml(std::string strFileOrString, std::vector<C
 		}
 		
 		if ( cmdparam.name.size() )
+		{
+			cmdparam.UpdateRtnCode();
 			vtCommandParams.push_back(cmdparam);
+		}
 
 		pXmlElent = pXmlElent->NextSiblingElement();
 	}