Fix an issue that the Target Name is supposed to an Ascii string.
authorqhuang8 <qhuang8@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 21 Feb 2008 08:53:18 +0000 (08:53 +0000)
committerqhuang8 <qhuang8@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 21 Feb 2008 08:53:18 +0000 (08:53 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4742 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c

index 7055c74..88994c2 100644 (file)
@@ -2080,7 +2080,7 @@ DevPathFromTextiSCSI (
   iSCSI             = (ISCSI_DEVICE_PATH_WITH_NAME *) CreateDeviceNode (\r
                                                         MESSAGING_DEVICE_PATH,\r
                                                         MSG_ISCSI_DP,\r
-                                                        (UINT16) (sizeof (ISCSI_DEVICE_PATH_WITH_NAME) + StrLen (NameStr) * 2)\r
+                                                        (UINT16) (sizeof (ISCSI_DEVICE_PATH_WITH_NAME) + StrLen (NameStr))\r
                                                         );\r
 \r
   AsciiStr = iSCSI->iSCSITargetName;\r