Incorporated the bug fix in unicode file parse
[mirror_edk2.git] / EdkUnixPkg / RuntimeDxe / FvbServices / FWBlockService.c
index 84c40f4314084cc62972db757c449d8acb2697c3..7cb85a6a5082290bc9170bd7fe268a88a80e4f45 100644 (file)
@@ -1255,7 +1255,7 @@ Returns:
   Status = gBS->AllocatePool (\r
                   EfiRuntimeServicesData,\r
                   sizeof (ESAL_FWB_GLOBAL),\r
-                  &mFvbModuleGlobal\r
+                  (VOID**) &mFvbModuleGlobal\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
@@ -1309,7 +1309,7 @@ Returns:
   Status = gBS->AllocatePool (\r
                   EfiRuntimeServicesData,\r
                   BufferSize,\r
-                  &mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]\r
+                  (VOID**) &mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
@@ -1368,7 +1368,7 @@ Returns:
 \r
     CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);\r
     FwVolHeader = &(FwhInstance->VolumeHeader);\r
-    EfiInitializeLock (&(FwhInstance->FvbDevLock), EFI_TPL_HIGH_LEVEL);\r
+    EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);\r
 \r
     NumOfBlocks = 0;\r
 \r
@@ -1395,7 +1395,7 @@ Returns:
     Status = gBS->AllocatePool (\r
                     EfiRuntimeServicesData,\r
                     sizeof (EFI_FW_VOL_BLOCK_DEVICE),\r
-                    &FvbDevice\r
+                    (VOID**) &FvbDevice\r
                     );\r
     ASSERT_EFI_ERROR (Status);\r
 \r
@@ -1437,7 +1437,7 @@ Returns:
       Status = gBS->HandleProtocol (\r
                       FwbHandle,\r
                       &gEfiFirmwareVolumeBlockProtocolGuid,\r
-                      &OldFwbInterface\r
+                      (VOID**)&OldFwbInterface\r
                       );\r
       ASSERT_EFI_ERROR (Status);\r
 \r
@@ -1484,7 +1484,7 @@ Returns:
   Status = gBS->AllocatePool (\r
                   EfiRuntimeServicesData,\r
                   MaxLbaSize,\r
-                  &mFvbModuleGlobal->FvbScratchSpace[FVB_PHYSICAL]\r
+                  (VOID**)&mFvbModuleGlobal->FvbScratchSpace[FVB_PHYSICAL]\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r