mirror of https://github.com/acidanthera/audk.git
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:
parent
b2f35637da
commit
e43525ee3c
|
@ -202,7 +202,7 @@ typedef struct {
|
|||
//
|
||||
// Caller needs to ConvertPointer() for the pointers.
|
||||
//
|
||||
VOID **AddressPointer;
|
||||
VOID ***AddressPointer;
|
||||
UINTN AddressPointerCount;
|
||||
} AUTH_VAR_LIB_CONTEXT_OUT;
|
||||
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue