Fixed invalid stream copy length.

This commit is contained in:
Armin Novak 2016-02-29 12:51:54 +01:00
parent 4929844971
commit 46fa7ec481
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ static BOOL update_message_SurfaceCommand(rdpContext* context, wStream* s)
if (!wParam) if (!wParam)
return FALSE; return FALSE;
Stream_Copy(wParam, s, Stream_Capacity(s)); Stream_Copy(wParam, s, Stream_GetRemainingLength(s));
Stream_SetPosition(wParam, 0); Stream_SetPosition(wParam, 0);
return MessageQueue_Post(context->update->queue, (void*) context, return MessageQueue_Post(context->update->queue, (void*) context,