Skip to content

Commit

Permalink
Remove KeyboardType enum parsing (crashes on unknown keyboards, like …
Browse files Browse the repository at this point in the history
…bépo :) )
  • Loading branch information
Res260 committed Dec 18, 2018
1 parent 340d0f6 commit 80c22ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrdp/parser/rdp/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def parseClientCoreData(self, stream):
keyboardLayout = Uint32LE.unpack(stream)
clientBuild = Uint32LE.unpack(stream)
clientName = decodeUTF16LE(stream.read(32))
keyboardType = KeyboardType(Uint32LE.unpack(stream))
keyboardType = Uint32LE.unpack(stream)
keyboardSubType = Uint32LE.unpack(stream)
keyboardFunctionKey = Uint32LE.unpack(stream)
imeFileName = stream.read(64)
Expand Down

0 comments on commit 80c22ca

Please sign in to comment.