mirror of
https://gitee.com/openharmony/security_device_security_level
synced 2024-11-30 02:10:55 +00:00
!262 修改针对DmDeviceInfo结构体进行内存拷贝的方式
Merge pull request !262 from wenkaisong/master
This commit is contained in:
commit
ef1c1f142c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user