Skip to content

Commit 9b7cf29

Browse files
committed
fix(egfx): correct MapSurfaceToScaledWindowPdu size
Remove erroneous reserved field from FIXED_PART_SIZE. Per MS-RDPEGFX 2.2.2.23, this PDU has no reserved field (unlike MapSurfaceToScaledOutputPdu).
1 parent 082754a commit 9b7cf29

File tree

1 file changed

+1
-1
lines changed
  • crates/ironrdp-egfx/src/pdu

1 file changed

+1
-1
lines changed

crates/ironrdp-egfx/src/pdu/cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ pub struct MapSurfaceToScaledWindowPdu {
19691969
impl MapSurfaceToScaledWindowPdu {
19701970
const NAME: &'static str = "MapSurfaceToScaledWindowPdu";
19711971

1972-
const FIXED_PART_SIZE: usize = 2 /* SurfaceId */ + 2 /* reserved */ + 8 /* surfaceId */ + 4 /* mappedWidth */ + 4 /* mappedHeight */ + 4 /* targetWidth */ + 4 /* targetHeight */;
1972+
const FIXED_PART_SIZE: usize = 2 /* SurfaceId */ + 8 /* WindowId */ + 4 /* MappedWidth */ + 4 /* MappedHeight */ + 4 /* TargetWidth */ + 4 /* TargetHeight */;
19731973
}
19741974

19751975
impl Encode for MapSurfaceToScaledWindowPdu {

0 commit comments

Comments
 (0)