From c7765807936be90ea2b1c2bd8e81600db170803c Mon Sep 17 00:00:00 2001 From: rankun Date: Tue, 17 Sep 2019 22:55:02 +0800 Subject: [PATCH] fix: devicemsg bug --- QtScrcpy/device/controller/receiver/devicemsg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/QtScrcpy/device/controller/receiver/devicemsg.cpp b/QtScrcpy/device/controller/receiver/devicemsg.cpp index 9439802..26fcc8c 100644 --- a/QtScrcpy/device/controller/receiver/devicemsg.cpp +++ b/QtScrcpy/device/controller/receiver/devicemsg.cpp @@ -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