mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
回退src/create_pcid.c修改,解决pcid生成有误问题
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
+1
-2
@@ -504,7 +504,6 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
|
||||
freePcidJsonInfo.sysCapObj = cJSON_CreateObject();
|
||||
ret = CheckSysCapObj(freePcidJsonInfo, pcidMain, contextBufLen, ret);
|
||||
if (freePcidJsonInfo.flag == -1) {
|
||||
freePcidJsonInfo.sysCapObj = NULL;
|
||||
return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_CONTEXT_OUT, ret);
|
||||
}
|
||||
|
||||
@@ -900,7 +899,7 @@ int32_t EncodePcidscToString(char *inputFile, char *outDirPath)
|
||||
}
|
||||
(void)memset_s(freePcidInfo.priSyscapFull, priSyscapCount * SINGLE_SYSCAP_LEN,
|
||||
0, priSyscapCount * SINGLE_SYSCAP_LEN);
|
||||
freePcidInfo.priSyscapFull = NULL;
|
||||
// freePcidInfo.priSyscapFull = NULL;
|
||||
|
||||
ret = CheckPrivateSyCap(freePcidInfo, privateSyscapLen, privateSyscap, ret);
|
||||
if (ret == -1) {
|
||||
|
||||
Reference in New Issue
Block a user