mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-20 22:47:00 -04:00
@@ -471,7 +471,11 @@ uint32_t ResourcePack::HandleLabel(vector<ResourceItem> &items, ConfigParser &co
|
||||
idName = it.GetName() + "_entry";
|
||||
it.SetName(idName);
|
||||
string data(reinterpret_cast<const char *>(it.GetData()));
|
||||
if (!it.SetData(reinterpret_cast<const int8_t *>(data.c_str()), it.GetDataLength()-1)) {
|
||||
if (it.GetDataLength() - 1 < 0) {
|
||||
return RESTOOL_ERROR;
|
||||
}
|
||||
if (!it.SetData(reinterpret_cast<const int8_t *>(data.c_str()),
|
||||
static_cast<uint32_t>(it.GetDataLength() - 1))) {
|
||||
return RESTOOL_ERROR;
|
||||
}
|
||||
if (nextId <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user