Permalink
Browse files

libfreerdp-utils/stream: fix stream_read_uint32_be

  • Loading branch information...
1 parent 6c9ae5d commit 00260707b3788461854969f1c7eb94a76b69c0eb @awakecoding awakecoding committed Mar 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 include/freerdp/utils/stream.h
@@ -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 { \

0 comments on commit 0026070

Please sign in to comment.