Spec checked

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7521 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jji4
2009-02-13 06:28:15 +00:00
parent 89c18a1e9e
commit 8f0dd97eab
5 changed files with 18 additions and 29 deletions

View File

@ -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));
}
/**