Commit 034905a4 by wuyang.zou

Fix 兼容合并 FreemudWrapper.dll + PaymentWrapper.dll 功能 收尾工作

parent 1fbb1465
......@@ -125,14 +125,23 @@ HMODULE GetInstance()
std::string mod_config_path = dllPath;
replace_all(mod_config_path, "\\\\", "\\" );
replace_all(dstEnvPath, mod_image_path, "");
replace_all(dstEnvPath, ";;", "");
replace_all(dstEnvPath, ";;", ";");
replace_all(dstEnvPath, mod_config_path, "");
replace_all(dstEnvPath, ";;", "");
replace_all(dstEnvPath, ";;", ";");
//! Append moudle path
// 优先设置fmClient目录下dll库到环境变量的开头;
std::string dstEnvNewPath = "";
std::string lastCharOfEnv = "";
lastCharOfEnv = dstEnvPath.back();
/*
ss.str("");
ss <<"dstEnvPath replace_all After: "<< dstEnvPath <<" mod_image_path: "<< mod_image_path <<
" ; mod_config_path: " <<mod_config_path <<" ; lastCharOfEnv : "<< lastCharOfEnv<< std::endl;
netDataLog.addLog(ss.str().c_str());
// 定位发现: mod_image_path: C:\Freemud\fmclient\ != mod_config_path: C:\Freemud\fmClient\
*/
if ( mod_image_path== mod_config_path ) {
if (mod_image_path.length() ) {
dstEnvNewPath = dstEnvPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment