]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTool/VfrCompile: Add missing question opcode
authorDandan Bi <dandan.bi@intel.com>
Mon, 1 Aug 2016 11:18:30 +0000 (19:18 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 8 Aug 2016 03:04:46 +0000 (11:04 +0800)
The function CheckQuestionOpCode is to check whether the opcode
is question opcode, but it misses two question opcodes:
'EFI_IFR_REF_OP' and 'EFI_IFR_RESET_BUTTON'. Now add them.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/C/VfrCompile/VfrFormPkg.cpp

index 161221727275e88aed0337e47437aa4a5e0f5696..892b7b8fc7374794dedf3f34a2a9651ca9168f9a 100644 (file)
@@ -2,7 +2,7 @@
   \r
   The definition of CFormPkg's member function\r
 \r
   \r
   The definition of CFormPkg's member function\r
 \r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -1181,6 +1181,8 @@ CIfrRecordInfoDB::CheckQuestionOpCode (
   case EFI_IFR_DATE_OP:\r
   case EFI_IFR_TIME_OP:\r
   case EFI_IFR_ORDERED_LIST_OP:\r
   case EFI_IFR_DATE_OP:\r
   case EFI_IFR_TIME_OP:\r
   case EFI_IFR_ORDERED_LIST_OP:\r
+  case EFI_IFR_REF_OP:\r
+  case EFI_IFR_RESET_BUTTON_OP:\r
     return TRUE;\r
   default:\r
     return FALSE;\r
     return TRUE;\r
   default:\r
     return FALSE;\r