rdpsnd-server: fix broken message parsing.

This commit is contained in:
Vic Lee 2014-02-20 23:33:27 +08:00
parent 4982c03e3d
commit 4fa2ca3062
1 changed files with 1 additions and 6 deletions

View File

@ -201,12 +201,7 @@ static void* rdpsnd_server_thread(void* arg)
Stream_SetPosition(s, 0);
if (WTSVirtualChannelRead(context->priv->ChannelHandle, 0,
(PCHAR) Stream_Buffer(s), Stream_Capacity(s), &BytesReturned))
{
if (BytesReturned)
Stream_Seek(s, BytesReturned);
}
else
(PCHAR) Stream_Buffer(s), Stream_Capacity(s), &BytesReturned) == FALSE)
{
if (!BytesReturned)
break;