]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/BdsLib: Fixed incorrect typecasting
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Feb 2012 15:27:22 +0000 (15:27 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Feb 2012 15:27:22 +0000 (15:27 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12995 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/BdsLib/BdsFilePath.c

index ac1fb0eaf2875983f1e3f3c4c4e848e623c92910..88596c7c6a30bab1b2c05c137b0d822bded083ea 100644 (file)
@@ -83,7 +83,7 @@ BdsGetDeviceUsb (
 
   // Check if one of the handles matches the USB description
   for (Index = 0; Index < UsbIoHandleCount; Index++) {
-    Status = gBS->HandleProtocol (UsbIoBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID *) &UsbIoDevicePath);
+    Status = gBS->HandleProtocol (UsbIoBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID **) &UsbIoDevicePath);
     if (!EFI_ERROR(Status)) {
       TmpDevicePath = UsbIoDevicePath;
       while (!IsDevicePathEnd (TmpDevicePath)) {
@@ -159,7 +159,7 @@ BdsGetDeviceHd (
 
   // Check if one of the handles matches the Hard Disk Description
   for (Index = 0; Index < PartitionHandleCount; Index++) {
-    Status = gBS->HandleProtocol (PartitionBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID *) &PartitionDevicePath);
+    Status = gBS->HandleProtocol (PartitionBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID **) &PartitionDevicePath);
     if (!EFI_ERROR(Status)) {
       TmpDevicePath = PartitionDevicePath;
       while (!IsDevicePathEnd (TmpDevicePath)) {