git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5487
6f19259b-4bc3-4df7-8a09-
765794883524
ToLower (
IN OUT CHAR16 *Str
)
ToLower (
IN OUT CHAR16 *Str
)
@retval EFI_SUCCESS Routine success.
@retval EFI_BUFFER_TOO_SMALL The string buffer is too small.
@retval EFI_SUCCESS Routine success.
@retval EFI_BUFFER_TOO_SMALL The string buffer is too small.
ConfigStringToUnicode (
IN OUT CHAR16 *UnicodeString,
IN OUT UINTN *StrBufferLen,
ConfigStringToUnicode (
IN OUT CHAR16 *UnicodeString,
IN OUT UINTN *StrBufferLen,
@retval EFI_SUCCESS Routine success.
@retval EFI_BUFFER_TOO_SMALL The string buffer is too small.
@retval EFI_SUCCESS Routine success.
@retval EFI_BUFFER_TOO_SMALL The string buffer is too small.
UnicodeToConfigString (
IN OUT CHAR16 *ConfigString,
IN OUT UINTN *StrBufferLen,
UnicodeToConfigString (
IN OUT CHAR16 *ConfigString,
IN OUT UINTN *StrBufferLen,
@param NumberOfLines The number of lines for the dialog box
@param KeyValue The EFI_KEY value returned if HotKey is TRUE..
@param String Pointer to the first string in the list
@param NumberOfLines The number of lines for the dialog box
@param KeyValue The EFI_KEY value returned if HotKey is TRUE..
@param String Pointer to the first string in the list
- @param ... A series of (quantity == NumberOfLines) text
+ @param ... A series of (quantity == NumberOfLines - 1) text
strings which will be used to construct the dialog
box
strings which will be used to construct the dialog
box
InternalHiiLibPreparePackages (\r
IN UINTN NumberOfPackages,\r
IN CONST EFI_GUID *GuidId,\r
InternalHiiLibPreparePackages (\r
IN UINTN NumberOfPackages,\r
IN CONST EFI_GUID *GuidId,\r
)\r
{\r
EFI_HII_PACKAGE_LIST_HEADER *PackageListHeader;\r
)\r
{\r
EFI_HII_PACKAGE_LIST_HEADER *PackageListHeader;\r
//
// Fake <ConfigHdr>
//
//
// Fake <ConfigHdr>
//
-UINT16 mFakeConfigHdr[] = L"GUID=00000000000000000000000000000000&NAME=0000&PATH=0";
+GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT16 mFakeConfigHdr[] = L"GUID=00000000000000000000000000000000&NAME=0000&PATH=0";
/**
Draw a dialog and return the selected key.
/**
Draw a dialog and return the selected key.
@param NumberOfLines The number of lines for the dialog box
@param KeyValue The EFI_KEY value returned if HotKey is TRUE..
@param String Pointer to the first string in the list
@param NumberOfLines The number of lines for the dialog box
@param KeyValue The EFI_KEY value returned if HotKey is TRUE..
@param String Pointer to the first string in the list
- @param ... A series of (quantity == NumberOfLines) text
+ @param ... A series of (quantity == NumberOfLines - 1) text
strings which will be used to construct the dialog
box
strings which will be used to construct the dialog
box
LargestString = StringLen;
}
}
LargestString = StringLen;
}
}
if ((LargestString + 2) > DimensionsWidth) {
LargestString = DimensionsWidth - 2;
if ((LargestString + 2) > DimensionsWidth) {
LargestString = DimensionsWidth - 2;
ToLower (
IN OUT CHAR16 *Str
)
ToLower (
IN OUT CHAR16 *Str
)
StrBufferLen = BufferSize * sizeof (CHAR16) + 1;
Status = BufToHexString (Str, &StrBufferLen, NewBuffer, BufferSize);
StrBufferLen = BufferSize * sizeof (CHAR16) + 1;
Status = BufToHexString (Str, &StrBufferLen, NewBuffer, BufferSize);
- gBS->FreePool (NewBuffer);
//
// Convert the uppercase to lowercase since <HexAf> is defined in lowercase format.
//
//
// Convert the uppercase to lowercase since <HexAf> is defined in lowercase format.
//
ConfigStringToUnicode (
IN OUT CHAR16 *UnicodeString,
IN OUT UINTN *StrBufferLen,
ConfigStringToUnicode (
IN OUT CHAR16 *UnicodeString,
IN OUT UINTN *StrBufferLen,
UnicodeToConfigString (
IN OUT CHAR16 *ConfigString,
IN OUT UINTN *StrBufferLen,
UnicodeToConfigString (
IN OUT CHAR16 *ConfigString,
IN OUT UINTN *StrBufferLen,
FindBlockName (
IN OUT CHAR16 *String,
UINTN Offset,
FindBlockName (
IN OUT CHAR16 *String,
UINTN Offset,
+ CONST CHAR16 *ConfigHdr;
CHAR16 *ConfigResp;
CHAR16 *StringPtr;
UINTN HeaderLen;
CHAR16 *ConfigResp;
CHAR16 *StringPtr;
UINTN HeaderLen;
VariableName
);
if (Status == EFI_BUFFER_TOO_SMALL) {
VariableName
);
if (Status == EFI_BUFFER_TOO_SMALL) {
- gBS->FreePool (ConfigResp);
ConfigResp = AllocateZeroPool (BufferLen + HeaderLen);
StringPtr = ConfigResp + HeaderLen;
ConfigResp = AllocateZeroPool (BufferLen + HeaderLen);
StringPtr = ConfigResp + HeaderLen;
);
}
if (EFI_ERROR (Status)) {
);
}
if (EFI_ERROR (Status)) {
- gBS->FreePool (ConfigResp);
return Status;
}
CopyMem (ConfigResp, ConfigHdr, HeaderLen * sizeof (UINT16));
return Status;
}
CopyMem (ConfigResp, ConfigHdr, HeaderLen * sizeof (UINT16));
- gBS->FreePool (ConfigResp);
+ CONST CHAR16 *ConfigHdr;
CHAR16 *ConfigResp;
CHAR16 *StringPtr;
UINTN HeaderLen;
CHAR16 *ConfigResp;
CHAR16 *StringPtr;
UINTN HeaderLen;
&Progress
);
if (EFI_ERROR (Status)) {
&Progress
);
if (EFI_ERROR (Status)) {
- gBS->FreePool (ConfigResp);
- gBS->FreePool (ConfigResp);