MdeMdeModulePkg/Usb: Fixed a build error in UsbMouseDxe and UsbMouseAbsolutePointerDxe driver.

Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13453 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian 2012-06-14 08:54:52 +00:00
parent 4f6904db4c
commit ab742719aa
2 changed files with 4 additions and 4 deletions

View File

@ -594,8 +594,8 @@ InitializeUsbMouseDevice (
MouseHidDesc = (EFI_USB_HID_DESCRIPTOR *)Head;
break;
}
Total += (UINT16)Head->Len;
Head = (USB_DESC_HEAD*)((UINT8 *)Buf + Total);
Total = Total + (UINT16)Head->Len;
Head = (USB_DESC_HEAD*)((UINT8 *)Buf + Total);
}
if (MouseHidDesc == NULL) {

View File

@ -594,8 +594,8 @@ InitializeUsbMouseDevice (
MouseHidDesc = (EFI_USB_HID_DESCRIPTOR *)Head;
break;
}
Total += (UINT16)Head->Len;
Head = (USB_DESC_HEAD*)((UINT8 *)Buf + Total);
Total = Total + (UINT16)Head->Len;
Head = (USB_DESC_HEAD*)((UINT8 *)Buf + Total);
}
if (MouseHidDesc == NULL) {