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:
parent
be139063e4
commit
b510dccecb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue