[warnigns] fix Wshorten-64-to-32

This commit is contained in:
akallabeth
2024-10-14 15:50:38 +02:00
parent f88eda3f11
commit 78acedb40e
138 changed files with 1307 additions and 869 deletions

View File

@@ -546,8 +546,7 @@ static UINT location_server_packet_send(LocationServerContext* context, wStream*
WINPR_ASSERT(s);
const size_t pos = Stream_GetPosition(s);
if (pos > UINT32_MAX)
return ERROR_OUTOFMEMORY;
WINPR_ASSERT(pos <= UINT32_MAX);
if (!WTSVirtualChannelWrite(location->location_channel, Stream_BufferAs(s, char), (ULONG)pos,
&written))
{