#define WARNING_STATUS_NUMBER 4\r
#define ERROR_STATUS_NUMBER 24\r
\r
-STATIC CONST CHAR8 *StatusString [] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 *StatusString [] = {\r
"Success", // RETURN_SUCCESS = 0\r
"Warning Unknown Glyph", // RETURN_WARN_UNKNOWN_GLYPH = 1\r
"Warning Delete Failure", // RETURN_WARN_DELETE_FAILURE = 2\r
//\r
// Null terminate the Unicode or ASCII string\r
//\r
- BasePrintLibFillBuffer (Buffer, EndBuffer, 1, 0, BytesPerOutputCharacter);\r
+ BasePrintLibFillBuffer (Buffer, EndBuffer + BytesPerOutputCharacter, 1, 0, BytesPerOutputCharacter);\r
//\r
// Make sure output buffer cannot contain more than PcdMaximumUnicodeStringLength\r
// Unicode characters if PcdMaximumUnicodeStringLength is not zero. \r