]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix the bug that InternalReallocatePool() ignores the input parameter PoolType, and...
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 29 Apr 2009 02:52:37 +0000 (02:52 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 29 Apr 2009 02:52:37 +0000 (02:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8198 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c

index 7704f289e1899d0720a4bf87c5aa2ce175745ca5..1cf829babb7e41c0f72c1b9e5398163fdf4297ee 100644 (file)
@@ -2,7 +2,7 @@
   Support routines for memory allocation routines based \r
   on boot services for Dxe phase drivers.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\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
@@ -683,7 +683,7 @@ InternalReallocatePool (
 {\r
   VOID  *NewBuffer;\r
 \r
-  NewBuffer = AllocateZeroPool (NewSize);\r
+  NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);\r
   if (NewBuffer != NULL && OldBuffer != NULL) {\r
     CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));\r
     FreePool (OldBuffer);\r