Commit b510dcce authored by Samuele Guerrini's avatar Samuele Guerrini Committed by Alexandre Julliard

winebus.sys: Buffer length check fix.

parent be139063
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment