summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-14 08:54:52 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-14 08:54:52 +0000
commitab742719aa5180221043e6a2382e7dcbb42ee3ab (patch)
treee5bbdd1e4621adee44e5d024e48f9618cbf010a0 /MdeModulePkg/Bus
parent4f6904db4c3c50e0fa587c0692797b067ec8d453 (diff)
downloadedk2-ab742719aa5180221043e6a2382e7dcbb42ee3ab.zip
edk2-ab742719aa5180221043e6a2382e7dcbb42ee3ab.tar.gz
edk2-ab742719aa5180221043e6a2382e7dcbb42ee3ab.tar.bz2
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
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c4
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
index 3540cd4..32f0cb2 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
@@ -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) {
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c
index d4e5a03..c237d7f 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c
@@ -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) {