winebus.sys: Handle older kernel headers lacking feature ioctls.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2016-12-06 13:09:27 -06:00 committed by Alexandre Julliard
parent 3eaf586149
commit ea9df98c69
1 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ static NTSTATUS hidraw_set_output_report(DEVICE_OBJECT *device, UCHAR id, BYTE *
static NTSTATUS hidraw_get_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE *report, DWORD length, ULONG_PTR *read) static NTSTATUS hidraw_get_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE *report, DWORD length, ULONG_PTR *read)
{ {
#ifdef HAVE_LINUX_HIDRAW_H #if defined(HAVE_LINUX_HIDRAW_H) && defined(HIDIOCGFEATURE)
int rc; int rc;
struct platform_private* ext = impl_from_DEVICE_OBJECT(device); struct platform_private* ext = impl_from_DEVICE_OBJECT(device);
report[0] = id; report[0] = id;
@ -343,7 +343,7 @@ static NTSTATUS hidraw_get_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE
static NTSTATUS hidraw_set_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE *report, DWORD length, ULONG_PTR *written) static NTSTATUS hidraw_set_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE *report, DWORD length, ULONG_PTR *written)
{ {
#ifdef HAVE_LINUX_HIDRAW_H #if defined(HAVE_LINUX_HIDRAW_H) && defined(HIDIOCSFEATURE)
int rc; int rc;
struct platform_private* ext = impl_from_DEVICE_OBJECT(device); struct platform_private* ext = impl_from_DEVICE_OBJECT(device);
BYTE *feature_buffer; BYTE *feature_buffer;