From e48e37fce2611df7a52aff271835ff72ee396d9b Mon Sep 17 00:00:00 2001 From: vanjeff Date: Thu, 14 Feb 2008 09:40:22 +0000 Subject: Use Mde library and definition instead of some native definitions in NetLib, to simply network library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4693 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c') diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c index b947340abc..d6907955a5 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDriver.c @@ -141,7 +141,7 @@ PxeBcDriverBindingStart ( UINTN Index; EFI_STATUS Status; - Private = NetAllocateZeroPool (sizeof (PXEBC_PRIVATE_DATA)); + Private = AllocateZeroPool (sizeof (PXEBC_PRIVATE_DATA)); if (Private == NULL) { return EFI_OUT_OF_RESOURCES; } @@ -246,7 +246,7 @@ PxeBcDriverBindingStart ( goto ON_ERROR; } - NetZeroMem (&Private->Udp4CfgData, sizeof (EFI_UDP4_CONFIG_DATA)); + ZeroMem (&Private->Udp4CfgData, sizeof (EFI_UDP4_CONFIG_DATA)); Private->Udp4CfgData.AcceptBroadcast = TRUE; Private->Udp4CfgData.AcceptPromiscuous = FALSE; Private->Udp4CfgData.AcceptAnyPort = FALSE; @@ -322,7 +322,7 @@ ON_ERROR: ); } - NetFreePool (Private); + gBS->FreePool (Private); return Status; } @@ -433,7 +433,7 @@ PxeBcDriverBindingStop ( Private->Mtftp4Child ); - NetFreePool (Private); + gBS->FreePool (Private); } return Status; -- cgit v1.2.3