]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug in UefiDevicePathLib
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 Jul 2006 10:15:33 +0000 (10:15 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 Jul 2006 10:15:33 +0000 (10:15 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1084 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c

index e05736bbb7bebff8afbf10321f609b3ebed7540a..f3e04e03193cec1ec34431ec1d16f06ff2a8e0e4 100644 (file)
@@ -396,6 +396,7 @@ CreateDeviceNode (
   if (DevicePath != NULL) {\r
      DevicePath->Type    = NodeType;\r
      DevicePath->SubType = NodeSubType;\r
+     SetDevicePathNodeLength (DevicePath, NodeLength);\r
   }\r
 \r
   return DevicePath;\r