From 3ec64ac5033eec976703461698e698972eb70e63 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Fri, 12 Sep 2008 05:36:21 +0000 Subject: [PATCH] add param ImageHandle for MnpFlushServiceData(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5887 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c | 5 +++-- MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c | 4 ++-- MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c index aea31e461e..2268e6df82 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c @@ -469,7 +469,8 @@ ERROR: **/ VOID MnpFlushServiceData ( - MNP_SERVICE_DATA *MnpServiceData + IN MNP_SERVICE_DATA *MnpServiceData, + IN EFI_HANDLE ImageHandle ) { NET_CHECK_SIGNATURE (MnpServiceData, MNP_SERVICE_DATA_SIGNATURE); @@ -516,7 +517,7 @@ MnpFlushServiceData ( gBS->CloseProtocol ( MnpServiceData->ControllerHandle, &gEfiSimpleNetworkProtocolGuid, - This->DriverBindingHandle, + ImageHandle, MnpServiceData->ControllerHandle ); } diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c index 1c02e73f68..7284fd73b5 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c @@ -166,7 +166,7 @@ ErrorExit: // // Flush the Mnp Service Data. // - MnpFlushServiceData (MnpServiceData); + MnpFlushServiceData (MnpServiceData, This->DriverBindingHandle); } gBS->FreePool (MnpServiceData); @@ -250,7 +250,7 @@ MnpDriverBindingStop ( // // Flush the Mnp service data. // - MnpFlushServiceData (MnpServiceData); + MnpFlushServiceData (MnpServiceData, This->DriverBindingHandle); gBS->FreePool (MnpServiceData); } else { diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h b/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h index 436dbeb674..4b62967902 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpImpl.h @@ -1,6 +1,6 @@ /** @file -Copyright (c) 2005 - 2007, Intel Corporation +Copyright (c) 2005 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -105,7 +105,8 @@ MnpInitializeServiceData ( VOID MnpFlushServiceData ( - MNP_SERVICE_DATA *MnpServiceData + IN MNP_SERVICE_DATA *MnpServiceData, + IN EFI_HANDLE ImageHandle ); VOID