summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Hand/Locate.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Hand/Locate.c')
-rw-r--r--MdeModulePkg/Core/Dxe/Hand/Locate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/Hand/Locate.c b/MdeModulePkg/Core/Dxe/Hand/Locate.c
index 7b1cf2a7dd..de3152107b 100644
--- a/MdeModulePkg/Core/Dxe/Hand/Locate.c
+++ b/MdeModulePkg/Core/Dxe/Hand/Locate.c
@@ -334,7 +334,7 @@ CoreGetNextLocateByRegisterNotify (
Link = ProtNotify->Position->ForwardLink;
if (Link != &ProtNotify->Protocol->Protocols) {
Prot = CR (Link, PROTOCOL_INTERFACE, ByProtocol, PROTOCOL_INTERFACE_SIGNATURE);
- Handle = (IHANDLE *) Prot->Handle;
+ Handle = Prot->Handle;
*Interface = Prot->Interface;
}
}
@@ -385,7 +385,7 @@ CoreGetNextLocateByProtocol (
// Get the handle
//
Prot = CR(Link, PROTOCOL_INTERFACE, ByProtocol, PROTOCOL_INTERFACE_SIGNATURE);
- Handle = (IHANDLE *) Prot->Handle;
+ Handle = Prot->Handle;
*Interface = Prot->Interface;
//