Fix VS2005 build error
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7181 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
54cdf471a0
commit
779808545d
@ -491,7 +491,7 @@ ExtractDataFromHiiHandle (
|
|||||||
//
|
//
|
||||||
// Copy the GUID information from this handle
|
// Copy the GUID information from this handle
|
||||||
//
|
//
|
||||||
CopyGuid (Guid, &((FRAMEWORK_EFI_IFR_FORM_SET *) &RawData[Index])->Guid);
|
CopyGuid (Guid, (GUID *)(VOID *)&((FRAMEWORK_EFI_IFR_FORM_SET *) &RawData[Index])->Guid);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FRAMEWORK_EFI_IFR_ONE_OF_OP:
|
case FRAMEWORK_EFI_IFR_ONE_OF_OP:
|
||||||
@ -764,7 +764,7 @@ ValidateDataFromHiiHandle (
|
|||||||
|
|
||||||
for (Index = 0; RawData[Index] != FRAMEWORK_EFI_IFR_END_FORM_SET_OP;) {
|
for (Index = 0; RawData[Index] != FRAMEWORK_EFI_IFR_END_FORM_SET_OP;) {
|
||||||
if (RawData[Index] == FRAMEWORK_EFI_IFR_FORM_SET_OP) {
|
if (RawData[Index] == FRAMEWORK_EFI_IFR_FORM_SET_OP) {
|
||||||
CopyGuid (&Guid, &((FRAMEWORK_EFI_IFR_FORM_SET *) &RawData[Index])->Guid);
|
CopyGuid (&Guid, (GUID *)(VOID *)&((FRAMEWORK_EFI_IFR_FORM_SET *) &RawData[Index])->Guid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Index = RawData[Index + 1] + Index;
|
Index = RawData[Index + 1] + Index;
|
||||||
|
@ -89,7 +89,7 @@ CreateFormSet (
|
|||||||
FormSet.FormSetTitle = StringToken;
|
FormSet.FormSetTitle = StringToken;
|
||||||
FormSet.Class = Class;
|
FormSet.Class = Class;
|
||||||
FormSet.SubClass = SubClass;
|
FormSet.SubClass = SubClass;
|
||||||
CopyGuid (&FormSet.Guid, Guid);
|
CopyGuid ((GUID *)(VOID *)&FormSet.Guid, Guid);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialize the end formset data
|
// Initialize the end formset data
|
||||||
|
@ -468,6 +468,7 @@ SaveOverridesMapping (
|
|||||||
// ItemIndex now points to the next PLATFORM_OVERRIDE_ITEM which is not covered by VariableNeededSize
|
// ItemIndex now points to the next PLATFORM_OVERRIDE_ITEM which is not covered by VariableNeededSize
|
||||||
//
|
//
|
||||||
VariableBuffer = AllocateZeroPool (VariableNeededSize);
|
VariableBuffer = AllocateZeroPool (VariableNeededSize);
|
||||||
|
ASSERT (VariableBuffer != NULL);
|
||||||
ASSERT ((UINTN) VariableBuffer % sizeof(UINTN) == 0);
|
ASSERT ((UINTN) VariableBuffer % sizeof(UINTN) == 0);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -178,7 +178,7 @@ UpdateFormPackageData (
|
|||||||
}
|
}
|
||||||
|
|
||||||
ExtendOpCode = ((EFI_IFR_GUID_LABEL *) IfrOpHdr)->ExtendOpCode;
|
ExtendOpCode = ((EFI_IFR_GUID_LABEL *) IfrOpHdr)->ExtendOpCode;
|
||||||
LabelNumber = ReadUnaligned16 (&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Number);
|
LabelNumber = ReadUnaligned16 ((UINT16 *)(VOID*)&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Number);
|
||||||
if ((ExtendOpCode != EFI_IFR_EXTEND_OP_LABEL) || (LabelNumber != Label)
|
if ((ExtendOpCode != EFI_IFR_EXTEND_OP_LABEL) || (LabelNumber != Label)
|
||||||
|| !CompareGuid ((EFI_GUID *)(UINTN)(&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Guid), &mIfrVendorGuid)) {
|
|| !CompareGuid ((EFI_GUID *)(UINTN)(&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Guid), &mIfrVendorGuid)) {
|
||||||
//
|
//
|
||||||
|
@ -622,13 +622,7 @@ InitializeFtwLite (
|
|||||||
|
|
||||||
FtwLiteDevice = NULL;
|
FtwLiteDevice = NULL;
|
||||||
FtwLiteDevice = AllocatePool (sizeof (EFI_FTW_LITE_DEVICE) + Length);
|
FtwLiteDevice = AllocatePool (sizeof (EFI_FTW_LITE_DEVICE) + Length);
|
||||||
if (FtwLiteDevice != NULL) {
|
ASSERT (FtwLiteDevice != NULL);
|
||||||
Status = EFI_SUCCESS;
|
|
||||||
} else {
|
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
|
||||||
}
|
|
||||||
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
|
||||||
|
|
||||||
ZeroMem (FtwLiteDevice, sizeof (EFI_FTW_LITE_DEVICE));
|
ZeroMem (FtwLiteDevice, sizeof (EFI_FTW_LITE_DEVICE));
|
||||||
FtwLiteDevice->Signature = FTW_LITE_DEVICE_SIGNATURE;
|
FtwLiteDevice->Signature = FTW_LITE_DEVICE_SIGNATURE;
|
||||||
@ -791,7 +785,8 @@ InitializeFtwLite (
|
|||||||
(FtwLiteDevice->FtwSpareLba == (EFI_LBA) (-1))
|
(FtwLiteDevice->FtwSpareLba == (EFI_LBA) (-1))
|
||||||
) {
|
) {
|
||||||
DEBUG ((EFI_D_ERROR, "FtwLite: Working or spare FVB not ready\n"));
|
DEBUG ((EFI_D_ERROR, "FtwLite: Working or spare FVB not ready\n"));
|
||||||
ASSERT_EFI_ERROR (Status);
|
FreePool (FtwLiteDevice);
|
||||||
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Refresh workspace data from working block
|
// Refresh workspace data from working block
|
||||||
@ -831,6 +826,7 @@ InitializeFtwLite (
|
|||||||
//
|
//
|
||||||
Status = WorkSpaceRefresh (FtwLiteDevice);
|
Status = WorkSpaceRefresh (FtwLiteDevice);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
FreePool (FtwLiteDevice);
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -850,6 +846,7 @@ InitializeFtwLite (
|
|||||||
Status = FtwReclaimWorkSpace (FtwLiteDevice, FALSE);
|
Status = FtwReclaimWorkSpace (FtwLiteDevice, FALSE);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
FreePool (FtwLiteDevice);
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -869,6 +866,7 @@ InitializeFtwLite (
|
|||||||
&FtwLiteDevice->FtwLiteInstance
|
&FtwLiteDevice->FtwLiteInstance
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
FreePool (FtwLiteDevice);
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@ -912,6 +910,7 @@ InitializeFtwLite (
|
|||||||
Status = FtwReclaimWorkSpace (FtwLiteDevice, TRUE);
|
Status = FtwReclaimWorkSpace (FtwLiteDevice, TRUE);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_FTW_LITE, "FtwLite: Workspace reclaim - %r\n", Status));
|
DEBUG ((EFI_D_FTW_LITE, "FtwLite: Workspace reclaim - %r\n", Status));
|
||||||
|
FreePool (FtwLiteDevice);
|
||||||
return EFI_ABORTED;
|
return EFI_ABORTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -468,6 +468,7 @@ UpdateDeviceSelectPage (
|
|||||||
//
|
//
|
||||||
Len = StrSize (ControllerName);
|
Len = StrSize (ControllerName);
|
||||||
NewString = AllocateZeroPool (Len + StrSize (L"--"));
|
NewString = AllocateZeroPool (Len + StrSize (L"--"));
|
||||||
|
ASSERT (NewString != NULL);
|
||||||
if (EFI_ERROR (CheckMapping (ControllerDevicePath,NULL, &mMappingDataBase, NULL, NULL))) {
|
if (EFI_ERROR (CheckMapping (ControllerDevicePath,NULL, &mMappingDataBase, NULL, NULL))) {
|
||||||
StrCat (NewString, L"--");
|
StrCat (NewString, L"--");
|
||||||
} else {
|
} else {
|
||||||
@ -762,6 +763,7 @@ UpdateBindingDriverSelectPage (
|
|||||||
// First create the driver image name
|
// First create the driver image name
|
||||||
//
|
//
|
||||||
NewString = AllocateZeroPool (StrSize (DriverName));
|
NewString = AllocateZeroPool (StrSize (DriverName));
|
||||||
|
ASSERT (NewString != NULL);
|
||||||
if (EFI_ERROR (CheckMapping (mControllerDevicePathProtocol[mSelectedCtrIndex], LoadedImageDevicePath, &mMappingDataBase, NULL, NULL))) {
|
if (EFI_ERROR (CheckMapping (mControllerDevicePathProtocol[mSelectedCtrIndex], LoadedImageDevicePath, &mMappingDataBase, NULL, NULL))) {
|
||||||
FakeNvData->DriSelection[Index] = 0x00;
|
FakeNvData->DriSelection[Index] = 0x00;
|
||||||
} else {
|
} else {
|
||||||
@ -894,7 +896,7 @@ UpdatePrioritySelectPage (
|
|||||||
}
|
}
|
||||||
|
|
||||||
IfrOptionList = AllocateZeroPool (sizeof (IFR_OPTION) * mSelectedDriverImageNum);
|
IfrOptionList = AllocateZeroPool (sizeof (IFR_OPTION) * mSelectedDriverImageNum);
|
||||||
ASSERT_EFI_ERROR (IfrOptionList != NULL);
|
ASSERT (IfrOptionList != NULL);
|
||||||
//
|
//
|
||||||
// Create order list for those selected drivers
|
// Create order list for those selected drivers
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user