From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1C32B1A1E25 for ; Mon, 5 Sep 2016 22:31:52 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 05 Sep 2016 22:31:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,290,1470726000"; d="scan'208";a="875426663" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 05 Sep 2016 22:31:51 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 5 Sep 2016 22:31:51 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 5 Sep 2016 22:31:50 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.109]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.166]) with mapi id 14.03.0248.002; Tue, 6 Sep 2016 13:31:48 +0800 From: "Dong, Eric" To: "Bi, Dandan" , "edk2-devel@lists.01.org" Thread-Topic: [patch] Nt32Pkg: Fix VS2010/VS2012 build failure Thread-Index: AQHSB//L7dbfp3cPr0KaiQZ4IukT3aBr79lA Date: Tue, 6 Sep 2016 05:31:47 +0000 Message-ID: References: <1473139798-12620-1-git-send-email-dandan.bi@intel.com> In-Reply-To: <1473139798-12620-1-git-send-email-dandan.bi@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [patch] Nt32Pkg: Fix VS2010/VS2012 build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 05:31:52 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Eric Dong > -----Original Message----- > From: Bi, Dandan > Sent: Tuesday, September 06, 2016 1:30 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric > Subject: [patch] Nt32Pkg: Fix VS2010/VS2012 build failure >=20 > Initialize the variable "OptionNumber". >=20 > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Dandan Bi > --- > Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > index dd67dab..76d926b 100644 > --- a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > +++ b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > @@ -272,10 +272,12 @@ GetBootManagerMenuAppOption ( > UINTN BootOptionCount; > EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions; > UINTN Index; > UINTN OptionNumber; >=20 > + OptionNumber =3D 0; > + > BootOptions =3D EfiBootManagerGetLoadOptions (&BootOptionCount, LoadOp= tionTypeBoot); >=20 > for (Index =3D 0; Index < BootOptionCount; Index++) { > if (IsBootManagerMenuAppFilePath (BootOptions[Index].FilePath)) { > OptionNumber =3D BootOptions[Index].OptionNumber; > -- > 1.9.5.msysgit.1