[channels,rdpgfx] fix rdpgfx_server_packet_complete_header

a condition check was inverted preventing server side gfx packets to be
sent.
This commit is contained in:
akallabeth
2024-12-03 17:10:51 +01:00
parent c2beba472e
commit 60dd32fbc7

View File

@@ -97,7 +97,7 @@ static INLINE BOOL rdpgfx_server_packet_complete_header(wStream* s, size_t start
const size_t cap = Stream_Capacity(s);
if (cap < start + RDPGFX_HEADER_SIZE)
return FALSE;
if ((start > UINT32_MAX) || (current > start))
if ((start > UINT32_MAX) || (current < start))
return FALSE;
/* Fill actual length */
Stream_SetPosition(s, start + RDPGFX_HEADER_SIZE - sizeof(UINT32));