mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 07:53:33 -10:00
GetModuleInfoFromHandle() takes an EFI_HANDLE -- (VOID*) -- as first parameter, but InsertFpdtRecord() passes (EFI_HANDLE*) -- (VOID**). (VOID**) converts silently to (VOID*), which is why the wrong cast is masked. Note that the *value* that is passed is alright -- therefore this patch does not change behavior --, it's just semantically wrong to pass an (EFI_HANDLE*) where an EFI_HANDLE is expected. Cc: Dandan Bi <[email protected]> Cc: Eric Dong <[email protected]> Cc: Hao A Wu <[email protected]> Cc: Jian J Wang <[email protected]> Cc: Liming Gao <[email protected]> Cc: Ray Ni <[email protected]> Signed-off-by: Laszlo Ersek <[email protected]> Reviewed-by: Dandan Bi <[email protected]> Reviewed-by: Philippe Mathieu-Daude <[email protected]> Reviewed-by: Hao A Wu <[email protected]>