Fix incorrect stream_seek_*
This commit is contained in:
parent
9faf581341
commit
52870ea1e0
@ -130,9 +130,9 @@ void stream_extend(STREAM* stream);
|
||||
(((uint64)(*(_s->p + 7))) << 56); \
|
||||
} while (0)
|
||||
|
||||
#define stream_seek_uint8(_s) stream_seek(s, 1)
|
||||
#define stream_seek_uint16(_s) stream_seek(s, 2)
|
||||
#define stream_seek_uint32(_s) stream_seek(s, 4)
|
||||
#define stream_seek_uint8(_s) stream_seek(_s, 1)
|
||||
#define stream_seek_uint16(_s) stream_seek(_s, 2)
|
||||
#define stream_seek_uint32(_s) stream_seek(_s, 4)
|
||||
|
||||
#define stream_read_uint16_be(_s, _v) do { _v = \
|
||||
(((uint16)(*_s->p)) << 8) + \
|
||||
|
@ -117,7 +117,7 @@ void update_read_palette(rdpUpdate* update, STREAM* s, PALETTE_UPDATE* palette_u
|
||||
uint32 color;
|
||||
|
||||
stream_seek_uint16(s); /* pad2Octets (2 bytes) */
|
||||
stream_seek_uint32(palette_update->number); /* numberColors (4 bytes), must be set to 256 */
|
||||
stream_read_uint32(s, palette_update->number); /* numberColors (4 bytes), must be set to 256 */
|
||||
|
||||
if (palette_update->number > 256)
|
||||
palette_update->number = 256;
|
||||
|
Loading…
x
Reference in New Issue
Block a user