Fixed one bug in UefiPxeBc start()/stop(). That would cause stop() failure.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 11 Jan 2008 07:22:12 +0000 (07:22 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 11 Jan 2008 07:22:12 +0000 (07:22 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4553 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c

index 546e6ae..b947340 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2007, Intel Corporation\r
+Copyright (c) 2007 - 2008, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -285,7 +285,7 @@ ON_ERROR:
     NetLibDestroyServiceChild (\r
       ControllerHandle,\r
       This->DriverBindingHandle,\r
-      &gEfiUdp4ProtocolGuid,\r
+      &gEfiUdp4ServiceBindingProtocolGuid,\r
       Private->Udp4Child\r
       );\r
   }\r
@@ -301,7 +301,7 @@ ON_ERROR:
     NetLibDestroyServiceChild (\r
       ControllerHandle,\r
       This->DriverBindingHandle,\r
-      &gEfiMtftp4ProtocolGuid,\r
+      &gEfiMtftp4ServiceBindingProtocolGuid,\r
       Private->Mtftp4Child\r
       );\r
   }\r
@@ -317,7 +317,7 @@ ON_ERROR:
     NetLibDestroyServiceChild (\r
       ControllerHandle,\r
       This->DriverBindingHandle,\r
-      &gEfiDhcp4ProtocolGuid,\r
+      &gEfiDhcp4ServiceBindingProtocolGuid,\r
       Private->Dhcp4Child\r
       );\r
   }\r
@@ -398,10 +398,10 @@ PxeBcDriverBindingStop (
           Private->Udp4Child,\r
           &gEfiUdp4ProtocolGuid,\r
           This->DriverBindingHandle,\r
-          ControllerHandle\r
+          NicHandle\r
           );\r
     NetLibDestroyServiceChild (\r
-      ControllerHandle,\r
+      NicHandle,\r
       This->DriverBindingHandle,\r
       &gEfiUdp4ServiceBindingProtocolGuid,\r
       Private->Udp4Child\r
@@ -411,10 +411,10 @@ PxeBcDriverBindingStop (
           Private->Dhcp4Child,\r
           &gEfiDhcp4ProtocolGuid,\r
           This->DriverBindingHandle,\r
-          ControllerHandle\r
+          NicHandle\r
           );\r
     NetLibDestroyServiceChild (\r
-      ControllerHandle,\r
+      NicHandle,\r
       This->DriverBindingHandle,\r
       &gEfiDhcp4ServiceBindingProtocolGuid,\r
       Private->Dhcp4Child\r
@@ -424,10 +424,10 @@ PxeBcDriverBindingStop (
           Private->Mtftp4Child,\r
           &gEfiMtftp4ProtocolGuid,\r
           This->DriverBindingHandle,\r
-          ControllerHandle\r
+          NicHandle\r
           );\r
     NetLibDestroyServiceChild (\r
-      ControllerHandle,\r
+      NicHandle,\r
       This->DriverBindingHandle,\r
       &gEfiMtftp4ServiceBindingProtocolGuid,\r
       Private->Mtftp4Child\r