mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-24 11:22:08 +00:00
fix: devicemsg bug
This commit is contained in:
parent
1505dab6d7
commit
c776580793
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ qint32 DeviceMsg::deserialize(QByteArray& byteArray)
|
||||||
m_data.type = (DeviceMsgType)c;
|
m_data.type = (DeviceMsgType)c;
|
||||||
switch (m_data.type) {
|
switch (m_data.type) {
|
||||||
case DMT_GET_CLIPBOARD: {
|
case DMT_GET_CLIPBOARD: {
|
||||||
|
m_data.clipboardMsg.text = Q_NULLPTR;
|
||||||
quint16 clipboardLen = BufferUtil::read16(buf);
|
quint16 clipboardLen = BufferUtil::read16(buf);
|
||||||
if (clipboardLen > len - 3) {
|
if (clipboardLen > len - 3) {
|
||||||
ret = 0; // not available
|
ret = 0; // not available
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue