From: qhuang8 Date: Mon, 24 Jul 2006 10:15:33 +0000 (+0000) Subject: Fix a bug in UefiDevicePathLib X-Git-Tag: edk2-stable201903~24788 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c4898a017e6ae387f55c7cfccb18e77fde7a8c16 Fix a bug in UefiDevicePathLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1084 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index e05736bbb7..f3e04e0319 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -396,6 +396,7 @@ CreateDeviceNode ( if (DevicePath != NULL) { DevicePath->Type = NodeType; DevicePath->SubType = NodeSubType; + SetDevicePathNodeLength (DevicePath, NodeLength); } return DevicePath;