fix: devicemsg bug

dev
rankun 6 years ago
parent 1505dab6d7
commit c776580793

@ -45,6 +45,7 @@ qint32 DeviceMsg::deserialize(QByteArray& byteArray)
m_data.type = (DeviceMsgType)c;
switch (m_data.type) {
case DMT_GET_CLIPBOARD: {
m_data.clipboardMsg.text = Q_NULLPTR;
quint16 clipboardLen = BufferUtil::read16(buf);
if (clipboardLen > len - 3) {
ret = 0; // not available

Loading…
Cancel
Save