Removed invalid check

This commit is contained in:
akallabeth 2020-11-17 09:04:52 +01:00
parent f032be12d2
commit e019ed6566

View File

@ -410,7 +410,7 @@ static BOOL rdp_write_bitmap_capability_set(wStream* s, const rdpSettings* setti
*/
if ((settings->ColorDepth > UINT16_MAX) || (settings->DesktopWidth > UINT16_MAX) ||
(settings->DesktopHeight > UINT16_MAX) || (settings->DesktopResize > UINT16_MAX))
(settings->DesktopHeight > UINT16_MAX))
return FALSE;
if (settings->RdpVersion >= RDP_VERSION_5_PLUS)