#/** @file\r
-# Library instance for HII common routines.\r
+# Library instance for HII common routines.\r
+# This library instance implements the common HII routines.\r
#\r
-# This library instance implements the common HII routines.\r
-# Copyright (c) 2006, Intel Corporation\r
+# Copyright (c) 2006, Intel Corporation.\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
MODULE_TYPE = DXE_DRIVER\r
VERSION_STRING = 1.0\r
LIBRARY_CLASS = FrameworkHiiLib,HiiLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
+ PI_SPECIFICATION_VERSION = 0x00000009\r
CONSTRUCTOR = FrameworkHiiLibConstructor\r
\r
-\r
#\r
# The following information is for reference only and not required by the build tools.\r
#\r
//\r
VariableData = AllocateZeroPool (SizeOfNvStore);\r
if (VariableData == NULL) {\r
+ FreePool (OldData);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
\r
VariableData = AllocatePool (SizeOfNvStore);\r
if (VariableData == NULL) {\r
+ FreePool (OldData);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
//\r
if (!GotMatch) {\r
*Results = FALSE;\r
- return EFI_SUCCESS;\r
+ goto EXIT;\r
}\r
break;\r
\r
//\r
if (VariableData[((FRAMEWORK_EFI_IFR_CHECKBOX *) &RawData[Index])->QuestionId] > 1) {\r
*Results = FALSE;\r
- return EFI_SUCCESS;\r
+ goto EXIT;\r
}\r
break;\r
\r
if ((VariableData[((FRAMEWORK_EFI_IFR_NUMERIC *)&RawData[Index])->QuestionId] < ((FRAMEWORK_EFI_IFR_NUMERIC *)&RawData[Index])->Minimum) ||\r
(VariableData[((FRAMEWORK_EFI_IFR_NUMERIC *)&RawData[Index])->QuestionId] > ((FRAMEWORK_EFI_IFR_NUMERIC *)&RawData[Index])->Maximum)) {\r
*Results = FALSE;\r
- return EFI_SUCCESS;\r
+ goto EXIT;\r
}\r
break;\r
\r
Index = RawData[Index + 1] + Index;\r
}\r
\r
+EXIT: \r
//\r
// Free our temporary repository of form data\r
//\r
- gBS->FreePool (OldData);\r
- gBS->FreePool (VariableData);\r
+ FreePool (OldData);\r
+ FreePool (VariableData);\r
\r
return EFI_SUCCESS;\r
}\r
GetCurrentLanguage (CurrentLanguage);\r
Status = AddString (*StringBuffer, CurrentLanguage, FormSetTitle, &StringToken);\r
if (EFI_ERROR (Status)) {\r
+ FreePool (FormBuffer);\r
+ FreePool (StringBuffer);\r
return Status;\r
}\r
\r
#/** @file\r
# EDK Internal Form Refresentation Support Library Instance.\r
#\r
-# The library instance provides common library routines help in \r
-# IFR creation on-the-fly, HII variable access, HII database access, multi language supports.\r
-# Copyright (c) 2006 - 2007, Intel Corporation.\r
+# The library instance provides common library routines help in IFR creation on-the-fly,\r
+# HII variable access, HII database access, multi language supports.\r
+#\r
+# Copyright (c) 2006 - 2007, Intel Corporation.\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
MODULE_TYPE = DXE_DRIVER\r
VERSION_STRING = 1.0\r
LIBRARY_CLASS = FrameworkIfrSupportLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER \r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
+ PI_SPECIFICATION_VERSION = 0x00000009\r
\r
#\r
# The following information is for reference only and not required by the build tools.\r
IfrCommon.c\r
IfrSupportLibInternal.h\r
\r
-\r
[Packages]\r
MdePkg/MdePkg.dec\r
IntelFrameworkPkg/IntelFrameworkPkg.dec\r
\r
-\r
[LibraryClasses]\r
UefiRuntimeServicesTableLib\r
UefiBootServicesTableLib\r
BaseLib\r
DebugLib\r
\r
-\r
[Guids]\r
- gEfiGlobalVariableGuid # ALWAYS_CONSUMED\r
-\r
+ gEfiGlobalVariableGuid # CONSUMED, Variable Name: L"Lan"\r
\r
[Protocols]\r
gEfiHiiProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
-\r
#/** @file\r
-# Component description file for the entry point to a EFIDXE Drivers\r
+# Component description file for the entry point to a EFIDXE Drivers\r
#\r
-# Library to abstract Framework extensions that conflict with UEFI 2.0 Specification\r
+# Library to abstract Framework extensions that conflict with UEFI 2.0 Specification.\r
+# Help Port Framework/Tinao code that has conflicts with UEFI 2.0 by hiding the oldconflicts \r
+# with library functions and supporting implementations of the old (EDK/EFI 1.10) and new \r
+# (EDK II/UEFI 2.0) way. This module is a DXE driver as it contains DXE enum extensions for \r
+# EFI event services.\r
#\r
-# Help Port Framework/Tinao code that has conflicts with UEFI 2.0 by hiding the oldconflicts with library functions and supporting implementations of the old\r
-# (EDK/EFI 1.10) and new (EDK II/UEFI 2.0) way. This module is a DXE driver as it contains DXE enum extensions for EFI event services.\r
-# Copyright (c) 2006, Intel Corporation.\r
+# Copyright (c) 2006, Intel Corporation.\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
VERSION_STRING = 1.0\r
LIBRARY_CLASS = UefiLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
\r
-\r
#\r
# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
#\r
UefiLib.c\r
UefiLibInternal.h\r
\r
-\r
[Packages]\r
MdePkg/MdePkg.dec\r
IntelFrameworkPkg/IntelFrameworkPkg.dec\r
\r
-\r
[LibraryClasses]\r
PrintLib\r
PcdLib\r
gEfiEventReadyToBootGuid # ALWAYS_CONSUMED\r
gEfiEventLegacyBootGuid # ALWAYS_CONSUMED\r
\r
-\r
[Protocols]\r
gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED\r
gEfiSimpleTextOutProtocolGuid # ALWAYS_CONSUMED\r
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable\r
gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport\r
\r
-\r
-\r
\r
#include <Protocol/FrameworkHii.h>\r
\r
-#include <Library/HiiLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#/** @file\r
-# Library instance for HII common routines.\r
+# Library instance for HII common routines.\r
#\r
-# This library instance implements the common HII routines.\r
-# Copyright (c) 2006, Intel Corporation\r
+# This library instance implements the common HII routines.\r
+#\r
+# Copyright (c) 2006, Intel Corporation\r
#\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
MODULE_TYPE = DXE_DRIVER\r
VERSION_STRING = 1.0\r
LIBRARY_CLASS = HiiLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
+ PI_SPECIFICATION_VERSION = 0x00000009\r
\r
CONSTRUCTOR = HiiLibFrameworkConstructor\r
\r
-\r
-\r
#\r
# The following information is for reference only and not required by the build tools.\r
#\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
- MdeModulePkg/MdeModulePkg.dec\r
IntelFrameworkPkg/IntelFrameworkPkg.dec\r
\r
[LibraryClasses]\r
MemoryAllocationLib\r
+ UefiBootServicesTableLib\r
DebugLib\r
\r
+[Protocols]\r
+ gEfiHiiProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r
+\r
+[Depex]\r
+ gEfiHiiProtocolGuid\r