Fixed one bug in UefiPxeBc start()/stop(). That would cause stop() failure.
authorvanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 11 Jan 2008 07:22:12 +0000 (07:22 +0000)
committervanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 11 Jan 2008 07:22:12 +0000 (07:22 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4553 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/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