From 8f0dd97eab98969bb26825852cb498f22daa4efd Mon Sep 17 00:00:00 2001 From: jji4 Date: Fri, 13 Feb 2009 06:28:15 +0000 Subject: Spec checked git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7521 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdePkg/Library/UefiDevicePathLibDevicePathProtocol') diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c index 8f2488a3b2..5dd0998762 100644 --- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c @@ -251,12 +251,12 @@ IsDevicePathEndInstance ( UINT16 SetDevicePathNodeLength ( IN OUT VOID *Node, - IN UINTN NodeLength + IN UINTN Length ) { ASSERT (Node != NULL); - ASSERT (NodeLength < 0x10000); - return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(NodeLength)); + ASSERT (Length < 0x10000); + return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length)); } /** -- cgit v1.2.3