SecurityPkg: Replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr
It is the follow up of 3ab41b7a32
to replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr with
UnicodeStrToAsciiStrS/AsciiStrToUnicodeStrS.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
@@ -239,7 +239,7 @@ OpalDriverPopUpHddPassword (
|
||||
return NULL;
|
||||
}
|
||||
|
||||
UnicodeStrToAsciiStr(Unicode, Ascii);
|
||||
UnicodeStrToAsciiStrS (Unicode, Ascii, MAX_PASSWORD_SIZE + 1);
|
||||
|
||||
return Ascii;
|
||||
}
|
||||
@@ -616,7 +616,7 @@ OpalDriverGetDeviceNameByProtocol(
|
||||
ASSERT (Dev->Name16 != NULL);
|
||||
StrCpyS (Dev->Name16, StrLength, DevName);
|
||||
Dev->NameZ = (CHAR8*)AllocateZeroPool(StrLength);
|
||||
UnicodeStrToAsciiStr(DevName, Dev->NameZ);
|
||||
UnicodeStrToAsciiStrS (DevName, Dev->NameZ, StrLength);
|
||||
|
||||
//
|
||||
// Retrieve bridge BDF info and port number or namespace depending on type
|
||||
|
Reference in New Issue
Block a user