rdpsnd-server: fix broken message parsing.
This commit is contained in:
parent
4982c03e3d
commit
4fa2ca3062
@ -201,12 +201,7 @@ static void* rdpsnd_server_thread(void* arg)
|
|||||||
Stream_SetPosition(s, 0);
|
Stream_SetPosition(s, 0);
|
||||||
|
|
||||||
if (WTSVirtualChannelRead(context->priv->ChannelHandle, 0,
|
if (WTSVirtualChannelRead(context->priv->ChannelHandle, 0,
|
||||||
(PCHAR) Stream_Buffer(s), Stream_Capacity(s), &BytesReturned))
|
(PCHAR) Stream_Buffer(s), Stream_Capacity(s), &BytesReturned) == FALSE)
|
||||||
{
|
|
||||||
if (BytesReturned)
|
|
||||||
Stream_Seek(s, BytesReturned);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (!BytesReturned)
|
if (!BytesReturned)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user