diff options
author | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-08 03:00:56 +0000 |
---|---|---|
committer | niruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-11-08 03:00:56 +0000 |
commit | 8cb3ed513e49f566d5c48e857de674bd39d8b96a (patch) | |
tree | 1e5768853fe7f03639ed679a407b696d3ed27c8c /MdeModulePkg | |
parent | 22f9423e53396691197de52155584bee0a0b8262 (diff) | |
download | edk2-platforms-8cb3ed513e49f566d5c48e857de674bd39d8b96a.tar.xz |
Roll back an incorrect change that causes EmuGetVariable always return EFI_NOT_FOUND.
Signed-off-by: niruiyu
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12667 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c index 64c5443b8d..b22739c22d 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c @@ -268,7 +268,7 @@ GetEndPointer ( //
// The end of variable store
//
- return (VARIABLE_HEADER *) HEADER_ALIGN (VolHeader + 1);
+ return (VARIABLE_HEADER *) HEADER_ALIGN (VolHeader + VolHeader->Size);
}
/**
|