Fix Bug to convert low Hex string to handle L'A' - L'F'
Fix Bug in HiiConstructConfigHdr API to support NULL DriverHandle. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8074 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -699,7 +699,7 @@ InternalHiiLowerConfigString (
|
||||
Lower = TRUE;
|
||||
} else if (*String == L'&') {
|
||||
Lower = FALSE;
|
||||
} else if (Lower && *String > L'A' && *String <= L'F') {
|
||||
} else if (Lower && *String >= L'A' && *String <= L'F') {
|
||||
*String = (CHAR16) (*String - L'A' + L'a');
|
||||
}
|
||||
}
|
||||
@ -927,7 +927,6 @@ InternalHiiBrowserCallback (
|
||||
the Device Path associated with DriverHandle is converted
|
||||
to a 2 Unicode character hexidecimal string.
|
||||
|
||||
@retval NULL DriverHandle does not support the Device Path Protocol.
|
||||
@retval NULL DriverHandle does not support the Device Path Protocol.
|
||||
@retval Other A pointer to the Null-terminate Unicode <ConfigHdr> string
|
||||
|
||||
@ -957,18 +956,21 @@ HiiConstructConfigHdr (
|
||||
NameLength = StrLen (Name);
|
||||
}
|
||||
|
||||
DevicePath = NULL;
|
||||
DevicePathSize = 0;
|
||||
//
|
||||
// Retrieve DevicePath Protocol associated with DriverHandle
|
||||
//
|
||||
if (DriverHandle != NULL) {
|
||||
DevicePath = DevicePathFromHandle (DriverHandle);
|
||||
if (DevicePath == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//
|
||||
// Compute the size of the device path in bytes
|
||||
//
|
||||
DevicePathSize = GetDevicePathSize (DevicePath);
|
||||
}
|
||||
|
||||
//
|
||||
// GUID=<HexCh>32&NAME=<Char>NameLength&PATH=<HexChar>DevicePathSize <Null>
|
||||
|
Reference in New Issue
Block a user