libfreerdp-core: use memory instead of stream in surface_bits callback.

This commit is contained in:
Vic Lee 2011-08-10 10:48:17 +08:00
parent 708c6096c9
commit 184bfc2482
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,6 @@
#define __UPDATE_API_H
#include <freerdp/types.h>
#include <freerdp/utils/stream.h>
/* Common */
@ -805,7 +804,7 @@ struct _SURFACE_BITS_COMMAND
uint16 width;
uint16 height;
uint32 bitmapDataLength;
STREAM* bitmapData;
uint8* bitmapData;
};
typedef struct _SURFACE_BITS_COMMAND SURFACE_BITS_COMMAND;

View File

@ -81,7 +81,7 @@ static int fastpath_recv_update_surfcmd_surface_bits(rdpFastPath* fastpath, STRE
stream_read_uint16(s, cmd->height);
stream_read_uint32(s, cmd->bitmapDataLength);
pos = stream_get_pos(s) + cmd->bitmapDataLength;
cmd->bitmapData = s;
cmd->bitmapData = stream_get_tail(s);
IFCALL(update->SurfaceBits, update, cmd);