mirror of https://github.com/acidanthera/audk.git
1.Coding style checked
2.CompareMem() replaced by CompareGuid() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7182 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
779808545d
commit
54656366f9
|
@ -155,7 +155,7 @@ UpdateFormPackageData (
|
||||||
switch (IfrOpHdr->OpCode) {
|
switch (IfrOpHdr->OpCode) {
|
||||||
case EFI_IFR_FORM_SET_OP :
|
case EFI_IFR_FORM_SET_OP :
|
||||||
if (FormSetGuid != NULL) {
|
if (FormSetGuid != NULL) {
|
||||||
if (CompareMem (&((EFI_IFR_FORM_SET *) IfrOpHdr)->Guid, FormSetGuid, sizeof (EFI_GUID)) == 0) {
|
if (CompareGuid((GUID *)(VOID *)&((EFI_IFR_FORM_SET *) IfrOpHdr)->Guid, FormSetGuid)) {
|
||||||
GetFormSet = TRUE;
|
GetFormSet = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ UpdateFormPackageData (
|
||||||
}
|
}
|
||||||
|
|
||||||
ExtendOpCode = ((EFI_IFR_GUID_LABEL *) IfrOpHdr)->ExtendOpCode;
|
ExtendOpCode = ((EFI_IFR_GUID_LABEL *) IfrOpHdr)->ExtendOpCode;
|
||||||
LabelNumber = ReadUnaligned16 ((UINT16 *)(VOID*)&((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)) {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue