From: "Gao, Liming" <liming.gao@intel.com>
To: "Bi, Dandan" <dandan.bi@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Zeng, Star" <star.zeng@intel.com>
Subject: Re: [patch] MdeModulePkg/HiiDB: Fix incorrect structure convention for checkbox
Date: Mon, 8 Oct 2018 03:08:52 +0000 [thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E333053@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <20181008012915.5968-1-dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
>-----Original Message-----
>From: Bi, Dandan
>Sent: Monday, October 08, 2018 9:29 AM
>To: edk2-devel@lists.01.org
>Cc: Gao, Liming <liming.gao@intel.com>; Zeng, Star <star.zeng@intel.com>
>Subject: [patch] MdeModulePkg/HiiDB: Fix incorrect structure convention for
>checkbox
>
>REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1224
>
>When covert IFR binary to EFI_IFR_CHECKBOX structure,
>Current code has following incorrect code logic:
>IfrCheckBox = (EFI_IFR_CHECKBOX *) (IfrOpHdr + 1);
>The correct one should be:
>IfrCheckBox = (EFI_IFR_CHECKBOX *) IfrOpHdr;
>
>This patch is to fix this bug.
>
>Cc: Liming Gao <liming.gao@intel.com>
>Cc: Star Zeng <star.zeng@intel.com>
>Contributed-under: TianoCore Contribution Agreement 1.1
>Signed-off-by: Dandan Bi <dandan.bi@intel.com>
>---
> MdeModulePkg/Universal/HiiDatabaseDxe/Database.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
>b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
>index 45448c5198..664687796f 100644
>--- a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
>+++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
>@@ -896,11 +896,11 @@ UpdateDefaultSettingInFormPackage (
> break;
> case EFI_IFR_CHECKBOX_OP:
> IfrScope = IfrOpHdr->Scope;
> IfrQuestionType = IfrOpHdr->OpCode;
> IfrQuestionHdr = (EFI_IFR_QUESTION_HEADER *) (IfrOpHdr + 1);
>- IfrCheckBox = (EFI_IFR_CHECKBOX *) (IfrOpHdr + 1);
>+ IfrCheckBox = (EFI_IFR_CHECKBOX *) IfrOpHdr;
> EfiVarStoreIndex = IsEfiVarStoreQuestion (IfrQuestionHdr, EfiVarStoreList,
>EfiVarStoreNumber);
> Width = sizeof (BOOLEAN);
> if (EfiVarStoreIndex < EfiVarStoreNumber) {
> for (Index = 0; Index < DefaultIdNumber; Index ++) {
> if (DefaultIdList[Index] == EFI_HII_DEFAULT_CLASS_STANDARD) {
>--
>2.18.0.windows.1
next prev parent reply other threads:[~2018-10-08 3:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-08 1:29 [patch] MdeModulePkg/HiiDB: Fix incorrect structure convention for checkbox Dandan Bi
2018-10-08 3:08 ` Gao, Liming [this message]
2018-10-08 12:18 ` Laszlo Ersek
2018-10-08 14:32 ` Bi, Dandan
2018-10-08 15:15 ` Laszlo Ersek
2018-10-09 2:06 ` Ni, Ruiyu
2018-10-09 2:13 ` Bi, Dandan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14E333053@SHSMSX104.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox