mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[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)
|
static BOOL drdynvc_write_variable_uint(wStream* s, UINT32 value, UINT8 cbLen)
|
||||||
{
|
{
|
||||||
UINT32 val = 0;
|
|
||||||
|
|
||||||
switch (cbLen)
|
switch (cbLen)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
Stream_Write_UINT8(s, (UINT8)val);
|
Stream_Write_UINT8(s, (UINT8)value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
Stream_Write_UINT16(s, (UINT16)val);
|
Stream_Write_UINT16(s, (UINT16)value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Stream_Write_UINT32(s, val);
|
Stream_Write_UINT32(s, value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user