!262 修改针对DmDeviceInfo结构体进行内存拷贝的方式

Merge pull request !262 from wenkaisong/master
This commit is contained in:
openharmony_ci 2024-01-30 14:44:24 +00:00 committed by Gitee
commit ef1c1f142c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -220,7 +220,7 @@ static bool MessengerGetDeviceNodeBasicInfo(const DeviceIdentify &devId, DmDevic
if (IsSameDevice(&devId, &curr)) {
find = true;
(void)memcpy_s(&info, sizeof(DmDeviceInfo), &device, sizeof(DmDeviceInfo));
info = device;
break;
}
}
@ -388,4 +388,4 @@ bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify
}
#ifdef __cplusplus
}
#endif
#endif