mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[channels,rdpei] fix sign conversion
This commit is contained in:
@@ -191,11 +191,11 @@ BOOL rdpei_read_4byte_unsigned(wStream* s, UINT32* value)
|
||||
break;
|
||||
|
||||
case 3:
|
||||
*value = ((byte & 0x3F) << 24) & 0xFF000000;
|
||||
*value = ((UINT32)(byte & 0x3F) << 24) & 0xFF000000;
|
||||
Stream_Read_UINT8(s, byte);
|
||||
*value |= ((byte << 16) & 0xFF0000);
|
||||
*value |= ((UINT32)(byte << 16) & 0xFF0000);
|
||||
Stream_Read_UINT8(s, byte);
|
||||
*value |= ((byte << 8) & 0xFF00);
|
||||
*value |= ((UINT32)(byte << 8) & 0xFF00);
|
||||
Stream_Read_UINT8(s, byte);
|
||||
*value |= byte;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user