[proxy,modules] fix bitmap filter drdynvc write

This commit is contained in:
Armin Novak 2023-06-07 10:35:55 +02:00 committed by David Fort
parent b05eacb99e
commit 98b7c88df7
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}