mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-01 23:35:58 +00:00
Fix uninitialized channel and packet flags in split UTF-8 packets
This commit is contained in:
parent
da7967632a
commit
d828868bc8
@ -594,8 +594,9 @@ static void inputSendThreadProc(void* context) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Use the original packet as a template and fixup to send one code point at a time
|
||||
splitPacket = *holder;
|
||||
splitPacket.packet.unicode.header.size = BE32(sizeof(uint32_t) + codePointLength);
|
||||
splitPacket.packet.unicode.header.magic = LE32(UTF8_TEXT_EVENT_MAGIC);
|
||||
memcpy(splitPacket.packet.unicode.text, &holder->packet.unicode.text[i], codePointLength);
|
||||
|
||||
// Encrypt and send the split packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user