summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-08 12:50:40 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-08 12:50:40 +0000
commitb9066aae2514ddf6dd5dfa6fe93f2ef500fddc95 (patch)
treef3d035a51be6c32e7cc52dbcc7c7dc932b756ca2
parent7c80ae1b31bccbe66e074fe74b760a3f903e8d5f (diff)
downloadedk2-b9066aae2514ddf6dd5dfa6fe93f2ef500fddc95.zip
edk2-b9066aae2514ddf6dd5dfa6fe93f2ef500fddc95.tar.gz
edk2-b9066aae2514ddf6dd5dfa6fe93f2ef500fddc95.tar.bz2
Change field Handle to type IHANDLE to remove the type casting.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5846 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Core/Dxe/Hand.h2
-rw-r--r--MdeModulePkg/Core/Dxe/Hand/Locate.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Dxe/Hand.h b/MdeModulePkg/Core/Dxe/Hand.h
index fb2d017..8be7e58 100644
--- a/MdeModulePkg/Core/Dxe/Hand.h
+++ b/MdeModulePkg/Core/Dxe/Hand.h
@@ -55,7 +55,7 @@ typedef struct {
#define PROTOCOL_INTERFACE_SIGNATURE EFI_SIGNATURE_32('p','i','f','c')
typedef struct {
UINTN Signature;
- EFI_HANDLE Handle; // Back pointer
+ IHANDLE *Handle; // Back pointer
LIST_ENTRY Link; // Link on IHANDLE.Protocols
LIST_ENTRY ByProtocol; // Link on PROTOCOL_ENTRY.Protocols
PROTOCOL_ENTRY *Protocol; // The protocol ID
diff --git a/MdeModulePkg/Core/Dxe/Hand/Locate.c b/MdeModulePkg/Core/Dxe/Hand/Locate.c
index 7b1cf2a..de31521 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;
//