We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92dd927 commit 097cdb6Copy full SHA for 097cdb6
crates/ironrdp-pdu/src/codecs/rfx/header_messages.rs
@@ -232,17 +232,8 @@ impl<'de> Decode<'de> for RfxChannel {
232
return Err(invalid_field_err!("channelId", "Invalid channel ID"));
233
}
234
235
- let width = src.read_i16();
236
- if !(1..=4096).contains(&width) {
237
- return Err(invalid_field_err!("width", "Invalid channel width"));
238
- }
239
- let width = RfxChannelWidth::new(width);
240
-
241
- let height = src.read_i16();
242
- if !(1..=2048).contains(&height) {
243
- return Err(invalid_field_err!("height", "Invalid channel height"));
244
245
- let height = RfxChannelHeight::new(height);
+ let width = RfxChannelWidth::new(src.read_i16());
+ let height = RfxChannelHeight::new(src.read_i16());
246
247
Ok(Self { width, height })
248
0 commit comments