winpr: Fix Data_Read_UINT16
There is a bug which causes that higher byte and lower byte contain first byte of data and second byte of data is lost. The patch fixes it similarly as it is done in Stream_Read_UINT16. https://github.com/FreeRDP/FreeRDP/issues/2520
This commit is contained in:
parent
6d2ab9cc47
commit
11221e7e2c
@ -39,7 +39,7 @@ extern "C" {
|
||||
|
||||
#define Data_Read_UINT16(_d, _v) do { _v = \
|
||||
(UINT16)(*_d) + \
|
||||
(((UINT16)(*(_d))) << 8); \
|
||||
(((UINT16)(*(_d + 1))) << 8); \
|
||||
} while (0)
|
||||
|
||||
#define Data_Read_UINT16_BE(_d, _v) do { _v = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user