bug fixing

This commit is contained in:
speyrefitte
2014-06-18 18:26:53 +02:00
parent 03e0425f7b
commit d725d2b0e2
2 changed files with 2 additions and 2 deletions

View File

@@ -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):
'''

View File

@@ -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