winebus.sys: Buffer length check fix.

Signed-off-by: Samuele Guerrini <sguerrini97@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Samuele Guerrini 2017-01-17 17:28:16 +00:00 committed by Alexandre Julliard
parent be139063e4
commit b510dccecb
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ static NTSTATUS hidraw_set_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE
if (id == 0)
{
if (length + 1 > sizeof(feature_buffer))
if (length + 1 > sizeof(buffer))
{
ERR("Output feature buffer too small\n");
return STATUS_UNSUCCESSFUL;