Revision: 16743 http://sourceforge.net/p/edk2/code/16743 Author: jiaxinwu Date: 2015-02-04 06:43:34 +0000 (Wed, 04 Feb 2015) Log Message: ----------- Initialize data and correct faulty logic in TcpComponentNameGetControllerName().
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin...@intel.com> Reviewed-by: Ye Ting <ting...@intel.com> Reviewed-by: Fu Siyuan <siyuan...@intel.com> Modified Paths: -------------- trunk/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ComponentName.c Modified: trunk/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ComponentName.c =================================================================== --- trunk/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ComponentName.c 2015-02-04 06:42:43 UTC (rev 16742) +++ trunk/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ComponentName.c 2015-02-04 06:43:34 UTC (rev 16743) @@ -1,7 +1,7 @@ /** @file UEFI Component Name(2) protocol implementation for Tcp4Dxe driver. -Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -256,6 +256,7 @@ // Format the child name into the string buffer as: // TCPv4 (SrcPort=59, DestPort=60, ActiveFlag=TRUE) // + ZeroMem (&Tcp4ConfigData, sizeof (Tcp4ConfigData)); Status = Tcp4->GetModeData (Tcp4, NULL, &Tcp4ConfigData, NULL, NULL, NULL); if (!EFI_ERROR (Status)) { UnicodeSPrint (HandleName, sizeof (HandleName), @@ -264,7 +265,7 @@ Tcp4ConfigData.AccessPoint.RemotePort, (Tcp4ConfigData.AccessPoint.ActiveFlag ? L"TRUE" : L"FALSE") ); - } if (Status == EFI_NOT_STARTED) { + } else if (Status == EFI_NOT_STARTED) { UnicodeSPrint ( HandleName, sizeof (HandleName), ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits