From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by ml01.01.org (Postfix) with ESMTP id 739991A1E28 for ; Wed, 10 Aug 2016 03:02:06 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 10 Aug 2016 03:02:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,499,1464678000"; d="scan'208";a="1033037009" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 10 Aug 2016 03:02:06 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 03:02:05 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 03:02:05 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.147]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.116]) with mapi id 14.03.0248.002; Wed, 10 Aug 2016 18:02:04 +0800 From: "Gao, Liming" To: "Bi, Dandan" , "edk2-devel@lists.01.org" CC: "Dong, Eric" Thread-Topic: [patch] MdeModulePkg/DriverSample: Skip the character "&" before "OFFSET=" Thread-Index: AQHR8rTosmulU0SUHkK2n4O7FJH5mKBB9wIA Date: Wed, 10 Aug 2016 10:02:03 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A1155E971E@shsmsx102.ccr.corp.intel.com> References: <1470798656-9900-1-git-send-email-dandan.bi@intel.com> In-Reply-To: <1470798656-9900-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] MdeModulePkg/DriverSample: Skip the character "&" before "OFFSET=" 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: Wed, 10 Aug 2016 10:02:06 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: Bi, Dandan > Sent: Wednesday, August 10, 2016 11:11 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Dong, Eric > Subject: [patch] MdeModulePkg/DriverSample: Skip the character "&" > before "OFFSET=3D" >=20 > When comparing the L"OFFSET=3D" with the ConfigResp string to find > all the "OFFSET=3D" in ConfigResp, should skip the character "&" > before "OFFSET=3D" in ConfigResp string. >=20 > Cc: Liming Gao > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Dandan Bi > Reviewed-by: Eric Dong > --- > MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c > b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c > index 9c5d4bb..ea6b124 100644 > --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c > +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c > @@ -776,10 +776,15 @@ AppendAltCfgString ( > return; > } > StringPtr +=3D Length; >=20 > // > + // Skip the character "&" before "OFFSET". > + // > + StringPtr ++; > + > + // > // Calculate Value and convert it to hex string. > // > if (Offset + Width > BlockSize) { > return; > } > -- > 1.9.5.msysgit.1