diff options
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);
}
/**
|