From 8c3e73dad73befa4564c51eeb86685dd0f93a618 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 12 Dec 2021 19:10:35 +0300 Subject: tbi/win: use return value for getting length --- Library/UefiShellUfmCommandLib/tbi/win.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Library/UefiShellUfmCommandLib') diff --git a/Library/UefiShellUfmCommandLib/tbi/win.c b/Library/UefiShellUfmCommandLib/tbi/win.c index 74d7ebe..48fadbc 100644 --- a/Library/UefiShellUfmCommandLib/tbi/win.c +++ b/Library/UefiShellUfmCommandLib/tbi/win.c @@ -291,8 +291,7 @@ UINTN EFIAPI wvprintf(struct window *w, CONST CHAR16 *fmt, VA_LIST args) if(!fmt_walker) return 0; - UnicodeVSPrint(fmt_walker, walker_size, fmt, args); - length = StrLen(fmt_walker); + length = UnicodeVSPrint(fmt_walker, walker_size, fmt, args); max_length = w->width - x; if(length >= max_length) { length = max_length; -- cgit v1.2.3-18-g5258