mirror of https://github.com/FreeRDP/FreeRDP
[proxy,modules] fix bitmap filter drdynvc write
This commit is contained in:
parent
b05eacb99e
commit
98b7c88df7
|
@ -259,20 +259,18 @@ static UINT8 drdynvc_value_to_cblen(UINT32 value)
|
|||
|
||||
static BOOL drdynvc_write_variable_uint(wStream* s, UINT32 value, UINT8 cbLen)
|
||||
{
|
||||
UINT32 val = 0;
|
||||
|
||||
switch (cbLen)
|
||||
{
|
||||
case 0:
|
||||
Stream_Write_UINT8(s, (UINT8)val);
|
||||
Stream_Write_UINT8(s, (UINT8)value);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
Stream_Write_UINT16(s, (UINT16)val);
|
||||
Stream_Write_UINT16(s, (UINT16)value);
|
||||
break;
|
||||
|
||||
default:
|
||||
Stream_Write_UINT32(s, val);
|
||||
Stream_Write_UINT32(s, value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue