diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-03-10 08:34:54 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-03-10 08:34:54 +0000 |
commit | 7d7a8ea24c2ce04bdc39def406f845da90814c81 (patch) | |
tree | 5ce619b9e61dbf2c05e8d94b77a3d1f982312a55 /MdeModulePkg/Universal/Network | |
parent | 89e430b0d45ea86c862dd12af5a9c1dbb7cfb7a3 (diff) | |
download | edk2-7d7a8ea24c2ce04bdc39def406f845da90814c81.zip edk2-7d7a8ea24c2ce04bdc39def406f845da90814c81.tar.gz edk2-7d7a8ea24c2ce04bdc39def406f845da90814c81.tar.bz2 |
fixed one bug in stop(), adding get NicHandle by gEfiArpProtocolGuid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4815 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r-- | MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c index 67a60a9..48a52ce 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c @@ -394,15 +394,21 @@ PxeBcDriverBindingStop ( EFI_HANDLE NicHandle;
EFI_STATUS Status;
- NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiDhcp4ProtocolGuid);
+ NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiArpProtocolGuid);
if (NicHandle == NULL) {
- NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiMtftp4ProtocolGuid);
+ NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiDhcp4ProtocolGuid);
if (NicHandle == NULL) {
- return EFI_DEVICE_ERROR;
+ NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiMtftp4ProtocolGuid);
+
+ if (NicHandle == NULL) {
+
+ return EFI_DEVICE_ERROR;
+
+ }
}
}
|