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:
jji4 2009-01-05 05:33:03 +00:00
parent 779808545d
commit 54656366f9
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ UpdateFormPackageData (
switch (IfrOpHdr->OpCode) {
case EFI_IFR_FORM_SET_OP :
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;
}
}
@ -178,7 +178,7 @@ UpdateFormPackageData (
}
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)
|| !CompareGuid ((EFI_GUID *)(UINTN)(&((EFI_IFR_GUID_LABEL *)IfrOpHdr)->Guid), &mIfrVendorGuid)) {
//