MdeModulePkg VariableDxe: Correct address pointers from AuthVariableLib

Originally, the double pointer (VOID **) is not correct for convert
address pointers from AuthVariableLib.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.Yao@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18054 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Star Zeng 2015-07-26 08:03:50 +00:00 committed by jljusten
parent b2f35637da
commit e43525ee3c
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ typedef struct {
//
// Caller needs to ConvertPointer() for the pointers.
//
VOID **AddressPointer;
VOID ***AddressPointer;
UINTN AddressPointerCount;
} AUTH_VAR_LIB_CONTEXT_OUT;

View File

@ -259,7 +259,7 @@ VariableClassAddressChangeEvent (
if (mContextOut.AddressPointer != NULL) {
for (Index = 0; Index < mContextOut.AddressPointerCount; Index++) {
EfiConvertPointer (0x0, (VOID **) &mContextOut.AddressPointer[Index]);
EfiConvertPointer (0x0, (VOID **) mContextOut.AddressPointer[Index]);
}
}
}