mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-22 04:24:59 +00:00
fix: devicemsg bug
This commit is contained in:
parent
16497cab0d
commit
7b54990f10
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue