[USB-BRINGUP-TRUNK]

- Fix build errors in kbdhid and mouhid

svn path=/branches/usb-bringup-trunk/; revision=55025
This commit is contained in:
Cameron Gutman 2012-01-20 22:17:32 +00:00
parent 3a034047fc
commit 86feb20aad
3 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ KbdHid_InsertScanCodes(
IN PCHAR NewScanCodes,
IN ULONG Length)
{
KEYBOARD_INPUT_DATA InputData;
//KEYBOARD_INPUT_DATA InputData;
ULONG Index;
for(Index = 0; Index < Length; Index++)
@ -563,7 +563,7 @@ KbdHid_StartDevice(
/* init input report*/
DeviceExtension->ReportLength = Capabilities.InputReportByteLength;
ASSERT(DeviceExtension->ReportLength);
DeviceExtension->Report = (PUCHAR)ExAllocatePool(NonPagedPool, DeviceExtension->ReportLength);
DeviceExtension->Report = (PCHAR)ExAllocatePool(NonPagedPool, DeviceExtension->ReportLength);
ASSERT(DeviceExtension->Report);
RtlZeroMemory(DeviceExtension->Report, DeviceExtension->ReportLength);

View file

@ -648,7 +648,7 @@ MouHid_StartDevice(
DPRINT1("[MOUHID] Usage %x UsagePage %x InputReportLength %lu\n", Capabilities.Usage, Capabilities.UsagePage, Capabilities.InputReportByteLength);
/* verify capabilities */
if (Capabilities.Usage != HID_USAGE_GENERIC_POINTER && Capabilities.Usage != HID_USAGE_GENERIC_MOUSE || Capabilities.UsagePage != HID_USAGE_PAGE_GENERIC)
if ((Capabilities.Usage != HID_USAGE_GENERIC_POINTER && Capabilities.Usage != HID_USAGE_GENERIC_MOUSE) || Capabilities.UsagePage != HID_USAGE_PAGE_GENERIC)
{
/* not supported */
ExFreePool(PreparsedData);
@ -658,7 +658,7 @@ MouHid_StartDevice(
/* init input report*/
DeviceExtension->ReportLength = Capabilities.InputReportByteLength;
ASSERT(DeviceExtension->ReportLength);
DeviceExtension->Report = (PUCHAR)ExAllocatePool(NonPagedPool, DeviceExtension->ReportLength);
DeviceExtension->Report = (PCHAR)ExAllocatePool(NonPagedPool, DeviceExtension->ReportLength);
ASSERT(DeviceExtension->Report);
RtlZeroMemory(DeviceExtension->Report, DeviceExtension->ReportLength);

View file

@ -86,7 +86,7 @@ typedef struct
//
// input report buffer
//
PUCHAR Report;
PCHAR Report;
//
// input report length