[assert] fix ULONG_MAX use

most of the time this was used to check ULONG limits. Replace with
correct UINT32_MAX
This commit is contained in:
akallabeth
2024-09-16 06:45:05 +02:00
parent bb242b9a89
commit a19305569d
8 changed files with 13 additions and 13 deletions

View File

@@ -259,7 +259,7 @@ static UINT rdpdr_seal_send_free_request(pf_channel_server_context* context, wSt
Stream_SealLength(s);
len = Stream_Length(s);
WINPR_ASSERT(len <= ULONG_MAX);
WINPR_ASSERT(len <= UINT32_MAX);
rdpdr_dump_send_packet(context->log, WLOG_TRACE, s, proxy_client_tx);
status = WTSVirtualChannelWrite(context->handle, (char*)Stream_Buffer(s), (ULONG)len, NULL);