diff options
author | Joursoir <chat@joursoir.net> | 2021-12-12 19:10:35 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-12-12 19:10:35 +0300 |
commit | 8c3e73dad73befa4564c51eeb86685dd0f93a618 (patch) | |
tree | c74938fa7ba0332b71eb6c6e192d05446cf20dec /Library/UefiShellUfmCommandLib/tbi/win.c | |
parent | 5799ec4a9263f6a9a43532bf7488db7b1b41636e (diff) | |
download | ufm-8c3e73dad73befa4564c51eeb86685dd0f93a618.tar.gz ufm-8c3e73dad73befa4564c51eeb86685dd0f93a618.tar.bz2 ufm-8c3e73dad73befa4564c51eeb86685dd0f93a618.zip |
tbi/win: use return value for getting length
Diffstat (limited to 'Library/UefiShellUfmCommandLib/tbi/win.c')
-rw-r--r-- | Library/UefiShellUfmCommandLib/tbi/win.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |