ArmPlatformPkg/Bds: Add support to handle Unicode parameters
Most UEFI applications expect unicode string parameter. This change is allows to support Ascii or Unicode strings. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15450 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
oliviermartin
parent
e213ae4552
commit
9fc9aa46cc
@@ -323,3 +323,18 @@ GetAlignedDevicePath (
|
||||
}
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
IsUnicodeString (
|
||||
IN VOID* String
|
||||
)
|
||||
{
|
||||
// We do not support NULL pointer
|
||||
ASSERT (String != NULL);
|
||||
|
||||
if (*(CHAR16*)String < 0x100) {
|
||||
//Note: We could get issue if the string is an empty Ascii string...
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user