]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Change field Handle to type IHANDLE to remove the type casting.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 8 Sep 2008 12:50:40 +0000 (12:50 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 8 Sep 2008 12:50:40 +0000 (12:50 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5846 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/Hand.h
MdeModulePkg/Core/Dxe/Hand/Locate.c

index fb2d017fdd12e77ca2e8bbf7057d31a0935d58d1..8be7e58d601c87d154fb3e2224a8c7ac6b29c93d 100644 (file)
@@ -55,7 +55,7 @@ typedef struct {
 #define PROTOCOL_INTERFACE_SIGNATURE  EFI_SIGNATURE_32('p','i','f','c')\r
 typedef struct {\r
   UINTN                       Signature;\r
-  EFI_HANDLE                  Handle;     // Back pointer\r
+  IHANDLE                     *Handle;    // Back pointer\r
   LIST_ENTRY                  Link;       // Link on IHANDLE.Protocols\r
   LIST_ENTRY                  ByProtocol; // Link on PROTOCOL_ENTRY.Protocols\r
   PROTOCOL_ENTRY              *Protocol;  // The protocol ID\r
index 7b1cf2a7dd075710d254361514dca37bce5063b2..de3152107b5f14c17193487fd531a164f4d1ef27 100644 (file)
@@ -334,7 +334,7 @@ CoreGetNextLocateByRegisterNotify (
     Link = ProtNotify->Position->ForwardLink;\r
     if (Link != &ProtNotify->Protocol->Protocols) {\r
       Prot = CR (Link, PROTOCOL_INTERFACE, ByProtocol, PROTOCOL_INTERFACE_SIGNATURE);\r
-      Handle = (IHANDLE *) Prot->Handle;\r
+      Handle = Prot->Handle;\r
       *Interface = Prot->Interface;\r
     }\r
   }\r
@@ -385,7 +385,7 @@ CoreGetNextLocateByProtocol (
     // Get the handle\r
     //\r
     Prot = CR(Link, PROTOCOL_INTERFACE, ByProtocol, PROTOCOL_INTERFACE_SIGNATURE);\r
-    Handle = (IHANDLE *) Prot->Handle;\r
+    Handle = Prot->Handle;\r
     *Interface = Prot->Interface;\r
 \r
     //\r