summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DevicePathDxe/DevicePath.h
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-05 04:51:51 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-05 04:51:51 +0000
commite9b3cd557fb0d51a2ce7bc41474e6d6bf6b3096d (patch)
treef448e1c441f72d2633b661d14af566d77ed2c2a4 /MdeModulePkg/Universal/DevicePathDxe/DevicePath.h
parent09e19629057ae62c97fe77969df17fc44c9fe6d6 (diff)
downloadedk2-e9b3cd557fb0d51a2ce7bc41474e6d6bf6b3096d.zip
edk2-e9b3cd557fb0d51a2ce7bc41474e6d6bf6b3096d.tar.gz
edk2-e9b3cd557fb0d51a2ce7bc41474e6d6bf6b3096d.tar.bz2
Support new format of IPv4 device path node, FibreEx and PcieRoot device path node in DevicepathDxe driver.
Meanwhile, unnecessary (UINTN) typecast is removed and a buffer truncating bug is fixed. The buffer truncating bug may cause DevicePathToText generates wrong text representation if a input device path is too long. Signed-off-by: niruiyu Reviewed-by: tye Reviewed-by: jjin9 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12276 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DevicePathDxe/DevicePath.h')
-rw-r--r--MdeModulePkg/Universal/DevicePathDxe/DevicePath.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePath.h b/MdeModulePkg/Universal/DevicePathDxe/DevicePath.h
index 8c0db78..8beb68c 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePath.h
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePath.h
@@ -1,7 +1,7 @@
/** @file
Definition for Device Path Utilities driver
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
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
@@ -31,9 +31,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/DevicePathLib.h>
#include <Library/PcdLib.h>
-
-#define MAX_CHAR 480
-
#define IS_COMMA(a) ((a) == L',')
#define IS_HYPHEN(a) ((a) == L'-')
#define IS_DOT(a) ((a) == L'.')
@@ -55,8 +52,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
typedef struct {
CHAR16 *Str;
- UINTN Len;
- UINTN MaxLen;
+ UINTN Length;
+ UINTN Capacity;
} POOL_PRINT;
typedef