mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[stream] use const correct Stream_Pointer access
This commit is contained in:
@@ -47,7 +47,7 @@ typedef struct
|
||||
static UINT echo_on_data_received(IWTSVirtualChannelCallback* pChannelCallback, wStream* data)
|
||||
{
|
||||
GENERIC_CHANNEL_CALLBACK* callback = (GENERIC_CHANNEL_CALLBACK*)pChannelCallback;
|
||||
BYTE* pBuffer = Stream_Pointer(data);
|
||||
const BYTE* pBuffer = Stream_ConstPointer(data);
|
||||
UINT32 cbSize = Stream_GetRemainingLength(data);
|
||||
|
||||
/* echo back what we have received. ECHO does not have any message IDs. */
|
||||
|
||||
Reference in New Issue
Block a user