libfreerdp-utils/stream: fix stream_read_uint32_be

This commit is contained in:
Marc-André Moreau 2012-03-06 08:48:55 -05:00
parent 6c9ae5ddad
commit 00260707b3

View File

@ -152,10 +152,10 @@ FREERDP_API void stream_extend(STREAM* stream, int request_size);
(uint16)(*(_s->p + 1)); \
_s->p += 2; } while (0)
#define stream_read_uint32_be(_s, _v) do { _v = \
(((uint32)(*(_s->p))) << 8) + \
(((uint32)(*(_s->p + 1)))) + \
(((uint32)(*(_s->p + 2))) << 24) + \
(((uint32)(*(_s->p + 3))) << 16); \
(((uint32)(*(_s->p))) << 24) + \
(((uint32)(*(_s->p + 1))) << 16) + \
(((uint32)(*(_s->p + 2))) << 8) + \
(((uint32)(*(_s->p + 3)))); \
_s->p += 4; } while (0)
#define stream_write_uint16_be(_s, _v) do { \