mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
Fix build warning by replace CompareGuid by CompareMem
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5756 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4406efb42b
commit
64bdb454f0
@ -104,7 +104,7 @@ TagGuidToUefiHiiHandle (
|
|||||||
while (!IsNull (&Private->ThunkContextListHead, Link)) {
|
while (!IsNull (&Private->ThunkContextListHead, Link)) {
|
||||||
ThunkContext = HII_THUNK_CONTEXT_FROM_LINK (Link);
|
ThunkContext = HII_THUNK_CONTEXT_FROM_LINK (Link);
|
||||||
|
|
||||||
if (CompareGuid (Guid, &ThunkContext->TagGuid) && (ThunkContext->IfrPackageCount != 0)) {
|
if (CompareMem (Guid, &ThunkContext->TagGuid, sizeof (EFI_GUID) == 0) && (ThunkContext->IfrPackageCount != 0)) {
|
||||||
return ThunkContext->UefiHiiHandle;
|
return ThunkContext->UefiHiiHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ GetAttributesOfFirstFormSet (
|
|||||||
|
|
||||||
case EFI_IFR_GUID_OP:
|
case EFI_IFR_GUID_OP:
|
||||||
Class = (EFI_IFR_GUID_CLASS*) OpCode;
|
Class = (EFI_IFR_GUID_CLASS*) OpCode;
|
||||||
if (CompareGuid (&Class->Guid, &gTianoHiiIfrGuid)) {
|
if (CompareMem (&Class->Guid, &gTianoHiiIfrGuid, sizeof (EFI_GUID)) == 0) {
|
||||||
Class = (EFI_IFR_GUID_CLASS *) OpCode;
|
Class = (EFI_IFR_GUID_CLASS *) OpCode;
|
||||||
|
|
||||||
switch (Class->ExtendOpCode) {
|
switch (Class->ExtendOpCode) {
|
||||||
@ -406,7 +406,7 @@ CreateQuestionIdMap (
|
|||||||
|
|
||||||
case EFI_IFR_GUID_OP:
|
case EFI_IFR_GUID_OP:
|
||||||
OptionMap = (EFI_IFR_GUID_OPTIONKEY *) OpCode;
|
OptionMap = (EFI_IFR_GUID_OPTIONKEY *) OpCode;
|
||||||
if (CompareGuid (&OptionMap->Guid, &gFrameworkHiiCompatbilityGuid)) {
|
if (CompareMem (&OptionMap->Guid, &gFrameworkHiiCompatbilityGuid, sizeof (EFI_GUID)) == 0) {
|
||||||
if (OptionMap->ExtendOpCode == EFI_IFR_EXTEND_OP_OPTIONKEY) {
|
if (OptionMap->ExtendOpCode == EFI_IFR_EXTEND_OP_OPTIONKEY) {
|
||||||
OneOfOptinMapEntryListHead = GetOneOfOptionMapEntryListHead (ThunkContext, OptionMap->QuestionId);
|
OneOfOptinMapEntryListHead = GetOneOfOptionMapEntryListHead (ThunkContext, OptionMap->QuestionId);
|
||||||
if (OneOfOptinMapEntryListHead == NULL) {
|
if (OneOfOptinMapEntryListHead == NULL) {
|
||||||
@ -429,7 +429,7 @@ CreateQuestionIdMap (
|
|||||||
|
|
||||||
InsertTailList (OneOfOptinMapEntryListHead, &OneOfOptionMapEntry->Link);
|
InsertTailList (OneOfOptinMapEntryListHead, &OneOfOptionMapEntry->Link);
|
||||||
}
|
}
|
||||||
}else if (CompareMem (&OptionMap->Guid, &gTianoHiiIfrGuid, sizeof (EFI_GUID))) {
|
} else if (CompareMem (&OptionMap->Guid, &gTianoHiiIfrGuid, sizeof (EFI_GUID)) == 0) {
|
||||||
Class = (EFI_IFR_GUID_CLASS *) OpCode;
|
Class = (EFI_IFR_GUID_CLASS *) OpCode;
|
||||||
|
|
||||||
switch (Class->ExtendOpCode) {
|
switch (Class->ExtendOpCode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user