mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,stream] Add Stream_ResetPosition
A helper function that does not require return checks, in contrast to Stream_SetPosition, which might fail.
This commit is contained in:
@@ -380,7 +380,7 @@ static UINT tsmf_on_data_received(IWTSVirtualChannelCallback* pChannelCallback,
|
||||
const size_t length = Stream_GetPosition(output);
|
||||
if (length > UINT32_MAX)
|
||||
goto out;
|
||||
Stream_SetPosition(output, 0);
|
||||
Stream_ResetPosition(output);
|
||||
Stream_Write_UINT32(output, ifman.output_interface_id);
|
||||
Stream_Write_UINT32(output, MessageId);
|
||||
DEBUG_TSMF("response size %d", length);
|
||||
|
||||
Reference in New Issue
Block a user