mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-19 12:13:04 -04:00
fix problem
Signed-off-by: shilei <shilei91@huawei.com> Change-Id: I146e5f152e9adad6f35b2df24153efb8cbe39923
This commit is contained in:
@@ -681,12 +681,17 @@ uint8_t GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len)
|
||||
IpcIo ipcIo;
|
||||
char data[MAX_IO_SIZE];
|
||||
IpcIoInit(&ipcIo, data, MAX_IO_SIZE, 0);
|
||||
#ifdef __LINUX__
|
||||
WriteInt32(&ipcIo, flags);
|
||||
return ObtainInnerBundleInfos(flags, bundleInfos, len, GET_BUNDLE_INFOS, &ipcIo);
|
||||
#else
|
||||
WriteInt32(&ipcIo, GET_BUNDLE_INFOS);
|
||||
WriteInt32(&ipcIo, flags);
|
||||
BasicInfo basicInfo;
|
||||
basicInfo.flags = flags;
|
||||
basicInfo.metaDataKey = nullptr;
|
||||
return ObtainBundleInfos(basicInfo, bundleInfos, len, GET_BUNDLE_INFOS, &ipcIo);
|
||||
#endif
|
||||
}
|
||||
|
||||
uint32_t GetBundleSize(const char *bundleName)
|
||||
|
||||
Reference in New Issue
Block a user