Enable wide string printing
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2022-08-10 17:52:19 +02:00
parent 075c85d0ff
commit a9171bd512
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -34,6 +34,7 @@ BlStringPrint(IN VOID PutChar(IN USHORT Character),
{ {
PEFI_GUID Guid; PEFI_GUID Guid;
PUCHAR String; PUCHAR String;
PWCHAR WideString;
ULONG PaddingCount; ULONG PaddingCount;
/* Read the variable arguments */ /* Read the variable arguments */
@ -97,6 +98,13 @@ BlStringPrint(IN VOID PutChar(IN USHORT Character),
PutChar(*String++); PutChar(*String++);
} }
break; break;
case L'S':
WideString = VA_ARG(Arguments, PWCHAR);
while(*WideString)
{
PutChar((UCHAR)*WideString++);
}
break;
case L'u': case L'u':
/* Unsigned 32-bit integer */ /* Unsigned 32-bit integer */
BlpStringPrintUnsigned32(PutChar, VA_ARG(Arguments, UINT32), 10, 0); BlpStringPrintUnsigned32(PutChar, VA_ARG(Arguments, UINT32), 10, 0);