/** @file\r
UEFI Memory pool management functions.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2010, 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
// MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI \r
// OS loaders that are provided by operating system vendors\r
//\r
- if (MemoryType < 0) {\r
+ if (MemoryType >= (INT32)0x80000000 && MemoryType <= (INT32)0xffffffff) {\r
\r
for (Link = mPoolHeadList.ForwardLink; Link != &mPoolHeadList; Link = Link->ForwardLink) {\r
Pool = CR(Link, POOL, Link, POOL_SIGNATURE);\r