|
|
@@ -351,7 +351,7 @@ public:
|
|
|
ErrorCodeEnum GetDllVersionInfo(LPCTSTR lpcszFilePath, DWORD& dwMajor, DWORD& dwMinor, DWORD& dwBuild, DWORD& dwRevision)
|
|
|
{
|
|
|
char* buf = NULL;
|
|
|
- dwMajor = dwMinor = dwBuild = dwRevision = -1;
|
|
|
+ dwMajor = dwMinor = dwBuild = dwRevision = (DWORD)(-1);
|
|
|
|
|
|
DWORD dwHnd;
|
|
|
DWORD dwVerInfoSize;
|
|
|
@@ -774,7 +774,7 @@ public:
|
|
|
LogErrMsgEx(m_errPkg, csErrMsg, dwCode, bToBusiness);
|
|
|
} else {
|
|
|
DbgWithLink(bToBusiness ? LOG_LEVEL_ERROR : LOG_LEVEL_WARN, bToBusiness ? LOG_TYPE_USER : LOG_TYPE_SYSTEM).setAPI(m_errPkg.msgHead)("{\"DevSN\":\"%s\", \"Code\":\"%s\", \"Msg\":\"%s\"}"
|
|
|
- , m_errPkg.devSN.GetData(), SpStrError(m_errPkg.devErrCode), csErrMsg);
|
|
|
+ , m_errPkg.devSN.GetData(), SpStrError(m_errPkg.devErrCode), csErrMsg.GetData());
|
|
|
}
|
|
|
return dwCode;
|
|
|
}
|
|
|
@@ -807,7 +807,7 @@ public:
|
|
|
|
|
|
const CSimpleStringA alarmMsg = CSimpleStringA::Format("{\"Function\":\"%s\", \"DevApi\":\"%s\", \"returnCode\":\"%s\", \"Msg\":\"%s\", \"context\":\"%s\"}"
|
|
|
, funPath.GetData(), devApi.GetData(), SpStrError(m_errPkgEx.errCode), csErrMsg.GetData(), context.GetData());
|
|
|
- CSimpleStringA csErrMsgWithReturnCode = CSimpleStringA::Format("{\"returnCode\":%d, \"errMsg\":\"%s\", \"context\":\"%s\"}", errCode, csErrMsg.GetData(), context.GetData()).GetData();
|
|
|
+ CSimpleStringA csErrMsgWithReturnCode = CSimpleStringA::Format("{\"returnCode\":%s, \"errMsg\":\"%s\", \"context\":\"%s\"}", SpStrError(errCode), csErrMsg.GetData(), context.GetData()).GetData();
|
|
|
CSimpleStringA tmpRTA(true), tmpDesc(true);
|
|
|
if (this->GetEntityBase()->GetFunction()->GetVTMErrMsg(dwCode, tmpDesc, tmpRTA) != Error_Succeed)
|
|
|
tmpRTA = CSimpleStringA::Format("%d", dwCode);//if map failed, use dwCode instead
|
|
|
@@ -947,8 +947,6 @@ public:
|
|
|
|
|
|
std::pair<bool, std::string> strResult;
|
|
|
strResult = generateJsonStr(rootInfo);
|
|
|
- strResult.second.c_str();
|
|
|
-
|
|
|
if (!entityName.IsNullOrEmpty()) {
|
|
|
LogWarn(Severity_Low, Error_Debug, m_RootIniCodeMap[entityName.GetData()], strResult.second.c_str());
|
|
|
} else {
|
|
|
@@ -1035,7 +1033,6 @@ public:
|
|
|
|
|
|
std::pair<bool, std::string> strResult;
|
|
|
strResult = generateJsonStr(termInfo);
|
|
|
- strResult.second.c_str();
|
|
|
|
|
|
CSmartPointer<IConfigInfo> spConfigRun;
|
|
|
CSimpleStringA csWarnMsg;
|