mirror of https://github.com/acidanthera/audk.git
1) Move RFC_3066_ENTRY_SIZE and ISO_639_2_ENTRY_SIZE to UefiBaseType.h.
2) Rename BufInReverseOrderToHexString to BufToHexString 3) Rename HexStringToBuf to HexStringToBufInReverseOrder 4) Update function comments in HiiLib.h and IfrSupportLib.h. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5991 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
274e80dfc8
commit
5e580cf717
|
@ -131,7 +131,7 @@ GetDevicePath (
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
HexStringToBuffer (*DevicePath, &Length, DevicePathString);
|
HexStringToBufInReverseOrder (*DevicePath, &Length, DevicePathString);
|
||||||
|
|
||||||
SafeFreePool (DevicePathString);
|
SafeFreePool (DevicePathString);
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ GenerateSubStr (
|
||||||
|
|
||||||
switch (Flag) {
|
switch (Flag) {
|
||||||
case 1:
|
case 1:
|
||||||
Status = BufferToHexString (StringHeader, (UINT8 *) Buffer, BufferLen);
|
Status = BufInReverseOrderToHexString (StringHeader, (UINT8 *) Buffer, BufferLen);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
Status = UnicodeToConfigString (StringHeader, &Length, (CHAR16 *) Buffer);
|
Status = UnicodeToConfigString (StringHeader, &Length, (CHAR16 *) Buffer);
|
||||||
|
@ -937,7 +937,7 @@ HiiConfigRoutingExportConfig (
|
||||||
if (PathHdr == NULL) {
|
if (PathHdr == NULL) {
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
Status = BufferToHexString (PathHdr, (UINT8 *) DevicePath, Length);
|
Status = BufInReverseOrderToHexString (PathHdr, (UINT8 *) DevicePath, Length);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -964,7 +964,7 @@ HiiConfigRoutingExportConfig (
|
||||||
StrnCpy (StringPtr, L"GUID=", StrLen (L"GUID="));
|
StrnCpy (StringPtr, L"GUID=", StrLen (L"GUID="));
|
||||||
StringPtr += StrLen (L"GUID=");
|
StringPtr += StrLen (L"GUID=");
|
||||||
|
|
||||||
Status = BufferToHexString (StringPtr, (UINT8 *) (&Storage->Guid), sizeof (EFI_GUID));
|
Status = BufInReverseOrderToHexString (StringPtr, (UINT8 *) (&Storage->Guid), sizeof (EFI_GUID));
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
StringPtr += 32;
|
StringPtr += 32;
|
||||||
|
|
|
@ -2285,7 +2285,7 @@ UiDisplayMenu (
|
||||||
BufferSize = StrLen (StringPtr) / 2;
|
BufferSize = StrLen (StringPtr) / 2;
|
||||||
DevicePath = AllocatePool (BufferSize);
|
DevicePath = AllocatePool (BufferSize);
|
||||||
|
|
||||||
HexStringToBuffer ((UINT8 *) DevicePath, &BufferSize, StringPtr);
|
HexStringToBufInReverseOrder ((UINT8 *) DevicePath, &BufferSize, StringPtr);
|
||||||
Selection->Handle = HiiLibDevicePathToHiiHandle (DevicePath);
|
Selection->Handle = HiiLibDevicePathToHiiHandle (DevicePath);
|
||||||
if (Selection->Handle == NULL) {
|
if (Selection->Handle == NULL) {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue