diff options
author | Laszlo Ersek <lersek@redhat.com> | 2019-09-06 21:40:32 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2019-10-09 09:40:09 +0200 |
commit | 3522ea73f932e2475ff4294715384dfc8c3e127b (patch) | |
tree | d8811e66138530724983ee66bb7edb244dc0b7e8 /BaseTools/Source/Python | |
parent | 02ee79fa6a63c79d234cdccf1cf74ecb77ffa9e2 (diff) | |
download | edk2-3522ea73f932e2475ff4294715384dfc8c3e127b.tar.gz edk2-3522ea73f932e2475ff4294715384dfc8c3e127b.tar.bz2 edk2-3522ea73f932e2475ff4294715384dfc8c3e127b.zip |
MdeModulePkg: fix cast in GetModuleInfoFromHandle() calls
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 <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions