@@ -803,12 +803,12 @@ function refreshRectPDU(rectangles, opt) {
803803 */
804804function bitmapCompressedDataHeader ( opt ) {
805805 var self = {
806- cbCompFirstRowSize : UInt16Le ( 0x0000 , { constant : true } ) ,
806+ cbCompFirstRowSize : new type . UInt16Le ( 0x0000 , { constant : true } ) ,
807807 // compressed data size
808- cbCompMainBodySize : UInt16Le ( ) ,
809- cbScanWidth : UInt16Le ( ) ,
808+ cbCompMainBodySize : new type . UInt16Le ( ) ,
809+ cbScanWidth : new type . UInt16Le ( ) ,
810810 // uncompressed data size
811- cbUncompressedSize : UInt16Le ( )
811+ cbUncompressedSize : new type . UInt16Le ( )
812812 } ;
813813
814814 return new type . Component ( self , opt ) ;
@@ -860,17 +860,17 @@ function bitmapData(coord, opt) {
860860
861861/**
862862 * @see http://msdn.microsoft.com/en-us/library/dd306368.aspx
863- * @param bitmapData {type.Component} list of bitmap data type
863+ * @param data {type.Component} list of bitmap data type
864864 * @param opt {object} type option
865865 * @returns {type.Component }
866866 */
867- function bitmapUpdateDataPDU ( bitmapData , opt ) {
867+ function bitmapUpdateDataPDU ( data , opt ) {
868868 var self = {
869869 __UPDATE_TYPE__ : UpdateType . UPDATETYPE_BITMAP ,
870- numberRectangles : UInt16Le ( function ( ) {
870+ numberRectangles : new type . UInt16Le ( function ( ) {
871871 return self . rectangles . obj . length ;
872872 } ) ,
873- rectangles : bitmapData || new type . Factory ( function ( s ) {
873+ rectangles : data || new type . Factory ( function ( s ) {
874874 self . rectangles = new type . Component ( [ ] ) ;
875875 for ( var i = 0 ; i < self . numberRectangles . value ; i ++ ) {
876876 self . rectangles . obj . push ( bitmapData ( ) . read ( s ) ) ;
@@ -900,6 +900,9 @@ function updateDataPDU(updateData, opt) {
900900 return opt . readLength . value - 2 ;
901901 } ) } ) . read ( s ) ;
902902 break ;
903+ case UpdateType . UPDATETYPE_SYNCHRONIZE :
904+ // do nothing artefact of protocol
905+ break ;
903906 default :
904907 log . error ( 'unknown updateDataPDU ' + self . updateType . value ) ;
905908 throw new Error ( 'NODE_RDP_PROTOCOL_PDU_DATA_UNKNOWN_UPDATE_DATA_PDU' ) ;
@@ -969,8 +972,7 @@ function dataPDU(pduData, shareId, opt) {
969972 self . pduData = updateDataPDU ( null , options ) . read ( s ) ;
970973 break ;
971974 default :
972- log . error ( 'unknown PDUType2 ' + self . shareDataHeader . obj . pduType2 . value ) ;
973- throw new Error ( 'NODE_RDP_PROTOCOL_PDU_DATA_UNKNOWN_PDUTYPE2' ) ;
975+ log . debug ( 'unknown PDUType2 ' + self . shareDataHeader . obj . pduType2 . value ) ;
974976 }
975977 } )
976978 } ;
0 commit comments