From 3709c4cd5bc3956fee59f31bdd1b7dc5b61a039a Mon Sep 17 00:00:00 2001 From: eric_tian Date: Fri, 27 Feb 2009 05:35:08 +0000 Subject: =?UTF-8?q?1.=20delete=20Include/Guid/VariableInfo.h=202.=20move?= =?UTF-8?q?=20VariableFormat.h=20into=20GUID=20directory=20and=20change=20?= =?UTF-8?q?the=20=E2=80=9CSignature=E2=80=9D=20field=20of=20the=20VARIABLE?= =?UTF-8?q?=5FSTORE=5FHEADER=20to=20gEfiVariableGuid=20value.=203.=20mergi?= =?UTF-8?q?ng=20VARIABLE=5FINFO=5FENTRY=20structure=20into=20the=20new=20I?= =?UTF-8?q?nclude/Guid/VariableFormat.h=204.=20change=20gEfiVariableInfoGu?= =?UTF-8?q?id=20into=20gEfiVariableGuid.=205.=20modify=20FDF=20files=20to?= =?UTF-8?q?=20use=20new=20guid=20value=20instead=20of=20the=20original=20s?= =?UTF-8?q?ignature.=206.=20all=20code=20related=20to=20signature=20is=20c?= =?UTF-8?q?hanged=20to=20use=20guid=20value.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7728 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Variable/Pei/Variable.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Universal/Variable/Pei/Variable.c') diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index f98d236443..7f4b4f68d7 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -268,7 +268,8 @@ GetVariableStoreStatus ( IN VARIABLE_STORE_HEADER *VarStoreHeader ) { - if (VarStoreHeader->Signature == VARIABLE_STORE_SIGNATURE && + + if (CompareGuid (&VarStoreHeader->Signature, &gEfiVariableGuid) && VarStoreHeader->Format == VARIABLE_STORE_FORMATTED && VarStoreHeader->State == VARIABLE_STORE_HEALTHY ) { @@ -276,7 +277,10 @@ GetVariableStoreStatus ( return EfiValid; } - if (VarStoreHeader->Signature == 0xffffffff && + if (((UINT32 *)(&VarStoreHeader->Signature))[0] == 0xffffffff && + ((UINT32 *)(&VarStoreHeader->Signature))[1] == 0xffffffff && + ((UINT32 *)(&VarStoreHeader->Signature))[2] == 0xffffffff && + ((UINT32 *)(&VarStoreHeader->Signature))[3] == 0xffffffff && VarStoreHeader->Size == 0xffffffff && VarStoreHeader->Format == 0xff && VarStoreHeader->State == 0xff -- cgit v1.2.3