]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
Fix a bug in UefiDevicePathLib
[mirror_edk2.git] / 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