bug fixing
This commit is contained in:
@@ -31,7 +31,7 @@ class RDP(object):
|
||||
for observer in self._observers:
|
||||
#for each rectangle in update PDU
|
||||
for rectangle in bitmapUpdateData.rectangles._array:
|
||||
observer.notifyBitmapUpdate(rectangle.destLeft.value, rectangle.destTop.value, rectangle.destRight.value, rectangle.destBottom.value, rectangle.width.value, rectangle.height.value, rectangle.bitsPerPixel.value, rectangle.flags | pdu.BitmapFlag.BITMAP_COMPRESSION, rectangle.bitmapDataStream.value)
|
||||
observer.notifyBitmapUpdate(rectangle.destLeft.value, rectangle.destTop.value, rectangle.destRight.value, rectangle.destBottom.value, rectangle.width.value, rectangle.height.value, rectangle.bitsPerPixel.value, (rectangle.flags & pdu.BitmapFlag.BITMAP_COMPRESSION).value, rectangle.bitmapDataStream.value)
|
||||
|
||||
class Factory(protocol.Factory):
|
||||
'''
|
||||
|
||||
@@ -164,7 +164,7 @@ class TPDU(LayerAutomata):
|
||||
|
||||
self._requestedProtocol = message.protocolNeg.selectedProtocol
|
||||
|
||||
if not self._requestedProtocol | Protocols.PROTOCOL_SSL:
|
||||
if not self._requestedProtocol & Protocols.PROTOCOL_SSL:
|
||||
#send error message and quit
|
||||
message = TPDUConnectMessage()
|
||||
message.code = MessageType.X224_TPDU_CONNECTION_CONFIRM
|
||||
|
||||
Reference in New Issue
Block a user