mirror of https://github.com/acidanthera/audk.git
edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/IfrOpCodeCreation.c
Match casting for LocalBuffer with the same type that it was declared with. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5300 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ff8dd84a08
commit
b562e7f509
|
@ -235,11 +235,11 @@ Returns:
|
||||||
|
|
||||||
OneOf.Help = HelpToken;
|
OneOf.Help = HelpToken;
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) FormBuffer;
|
LocalBuffer = (UINT8 *) FormBuffer;
|
||||||
|
|
||||||
EfiCopyMem (LocalBuffer, &OneOf, sizeof (EFI_IFR_ONE_OF));
|
EfiCopyMem (LocalBuffer, &OneOf, sizeof (EFI_IFR_ONE_OF));
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) (LocalBuffer + sizeof (EFI_IFR_ONE_OF));
|
LocalBuffer = (UINT8 *) (LocalBuffer + sizeof (EFI_IFR_ONE_OF));
|
||||||
|
|
||||||
for (Index = 0; Index < OptionCount; Index++) {
|
for (Index = 0; Index < OptionCount; Index++) {
|
||||||
OneOfOption.Header.OpCode = EFI_IFR_ONE_OF_OPTION_OP;
|
OneOfOption.Header.OpCode = EFI_IFR_ONE_OF_OPTION_OP;
|
||||||
|
@ -252,7 +252,7 @@ Returns:
|
||||||
|
|
||||||
EfiCopyMem (LocalBuffer, &OneOfOption, sizeof (EFI_IFR_ONE_OF_OPTION));
|
EfiCopyMem (LocalBuffer, &OneOfOption, sizeof (EFI_IFR_ONE_OF_OPTION));
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) (LocalBuffer + sizeof (EFI_IFR_ONE_OF_OPTION));
|
LocalBuffer = (UINT8 *) (LocalBuffer + sizeof (EFI_IFR_ONE_OF_OPTION));
|
||||||
}
|
}
|
||||||
|
|
||||||
EndOneOf.Header.Length = sizeof (EFI_IFR_END_ONE_OF);
|
EndOneOf.Header.Length = sizeof (EFI_IFR_END_ONE_OF);
|
||||||
|
@ -260,7 +260,7 @@ Returns:
|
||||||
|
|
||||||
EfiCopyMem (LocalBuffer, &EndOneOf, sizeof (EFI_IFR_END_ONE_OF));
|
EfiCopyMem (LocalBuffer, &EndOneOf, sizeof (EFI_IFR_END_ONE_OF));
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) (LocalBuffer + sizeof (EFI_IFR_END_ONE_OF));
|
LocalBuffer = (UINT8 *) (LocalBuffer + sizeof (EFI_IFR_END_ONE_OF));
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -323,11 +323,11 @@ Returns:
|
||||||
|
|
||||||
OrderedList.Help = HelpToken;
|
OrderedList.Help = HelpToken;
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) FormBuffer;
|
LocalBuffer = (UINT8 *) FormBuffer;
|
||||||
|
|
||||||
EfiCopyMem (LocalBuffer, &OrderedList, sizeof (EFI_IFR_ORDERED_LIST));
|
EfiCopyMem (LocalBuffer, &OrderedList, sizeof (EFI_IFR_ORDERED_LIST));
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) (LocalBuffer + sizeof (EFI_IFR_ORDERED_LIST));
|
LocalBuffer = (UINT8 *) (LocalBuffer + sizeof (EFI_IFR_ORDERED_LIST));
|
||||||
|
|
||||||
for (Index = 0; Index < OptionCount; Index++) {
|
for (Index = 0; Index < OptionCount; Index++) {
|
||||||
OrderedListOption.Header.OpCode = EFI_IFR_ONE_OF_OPTION_OP;
|
OrderedListOption.Header.OpCode = EFI_IFR_ONE_OF_OPTION_OP;
|
||||||
|
@ -340,7 +340,7 @@ Returns:
|
||||||
|
|
||||||
EfiCopyMem (LocalBuffer, &OrderedListOption, sizeof (EFI_IFR_ONE_OF_OPTION));
|
EfiCopyMem (LocalBuffer, &OrderedListOption, sizeof (EFI_IFR_ONE_OF_OPTION));
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) (LocalBuffer + sizeof (EFI_IFR_ONE_OF_OPTION));
|
LocalBuffer = (UINT8 *) (LocalBuffer + sizeof (EFI_IFR_ONE_OF_OPTION));
|
||||||
}
|
}
|
||||||
|
|
||||||
EndOrderedList.Header.Length = sizeof (EFI_IFR_END_ONE_OF);
|
EndOrderedList.Header.Length = sizeof (EFI_IFR_END_ONE_OF);
|
||||||
|
@ -348,7 +348,7 @@ Returns:
|
||||||
|
|
||||||
EfiCopyMem (LocalBuffer, &EndOrderedList, sizeof (EFI_IFR_END_ONE_OF));
|
EfiCopyMem (LocalBuffer, &EndOrderedList, sizeof (EFI_IFR_END_ONE_OF));
|
||||||
|
|
||||||
LocalBuffer = (CHAR8 *) (LocalBuffer + sizeof (EFI_IFR_END_ONE_OF));
|
LocalBuffer = (UINT8 *) (LocalBuffer + sizeof (EFI_IFR_END_ONE_OF));
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue