From nobody Wed May 1 17:05:58 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1492656659040517.0452409798838; Wed, 19 Apr 2017 19:50:59 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A54D620082EE6; Wed, 19 Apr 2017 19:50:54 -0700 (PDT) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 144F32194EB64 for ; Wed, 19 Apr 2017 19:50:53 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Apr 2017 19:50:52 -0700 Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by orsmga005.jf.intel.com with ESMTP; 19 Apr 2017 19:50:49 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,223,1488873600"; d="scan'208";a="89983457" From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Thu, 20 Apr 2017 10:50:43 +0800 Message-Id: <20170420025043.66620-2-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 In-Reply-To: <20170420025043.66620-1-ruiyu.ni@intel.com> References: <20170420025043.66620-1-ruiyu.ni@intel.com> Subject: [edk2] [PATCH] ShellPkg/pci: Fix VS2012 build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hao A Wu , Dandan Bi MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Hao A Wu Cc: Dandan Bi Reviewed-by: Hao Wu --- ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c b/ShellPkg/L= ibrary/UefiShellDebug1CommandsLib/Pci.c index 99335f05c5..38559571c2 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c @@ -2885,6 +2885,7 @@ ShellCommandRunPci ( ); =20 ExtendedConfigSpace =3D NULL; + ExtendedConfigSize =3D 0; PcieCapabilityPtr =3D LocatePciCapability (&ConfigSpace, EFI_PCI_CAPAB= ILITY_ID_PCIEXP); if (PcieCapabilityPtr !=3D 0) { ExtendedConfigSize =3D 0x1000 - EFI_PCIE_CAPABILITY_BASE_OFFSET; @@ -2922,7 +2923,7 @@ ShellCommandRunPci ( // if (ExplainData) { PciExplainPci (&ConfigSpace, Address, IoDev); - if ((PcieCapabilityPtr !=3D 0) && !ShellGetExecutionBreakFlag ()) { + if ((ExtendedConfigSpace !=3D NULL) && !ShellGetExecutionBreakFlag (= )) { PciExplainPciExpress ( (PCI_CAPABILITY_PCIEXP *) ((UINT8 *) &ConfigSpace + PcieCapabili= tyPtr), ExtendedConfigSpace, --=20 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel