mirror of https://github.com/FreeRDP/FreeRDP
Fixed invalid stream copy length.
This commit is contained in:
parent
4929844971
commit
46fa7ec481
|
@ -192,7 +192,7 @@ static BOOL update_message_SurfaceCommand(rdpContext* context, wStream* s)
|
|||
if (!wParam)
|
||||
return FALSE;
|
||||
|
||||
Stream_Copy(wParam, s, Stream_Capacity(s));
|
||||
Stream_Copy(wParam, s, Stream_GetRemainingLength(s));
|
||||
Stream_SetPosition(wParam, 0);
|
||||
|
||||
return MessageQueue_Post(context->update->queue, (void*) context,
|
||||
|
|
Loading…
Reference in New Issue