修改按模块名自动分配资源ID缺陷

Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
chencheng31
2022-05-09 14:12:30 +08:00
parent 7364e8ca48
commit 2603ce3652
+1 -1
View File
@@ -123,7 +123,7 @@ uint32_t ResourcePack::InitModule()
}
int32_t startId = ((it - moduleNames.begin()) + 1) * 0x01000000;
if (startId == 0x07000000) {
if (startId >= 0x07000000) {
startId = startId + 0x01000000;
}
return idWorker.Init(hapType, startId);