aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-12-12 19:10:35 +0300
committerJoursoir <chat@joursoir.net>2021-12-12 19:10:35 +0300
commit8c3e73dad73befa4564c51eeb86685dd0f93a618 (patch)
treec74938fa7ba0332b71eb6c6e192d05446cf20dec /Library/UefiShellUfmCommandLib
parent5799ec4a9263f6a9a43532bf7488db7b1b41636e (diff)
downloadufm-8c3e73dad73befa4564c51eeb86685dd0f93a618.tar.gz
ufm-8c3e73dad73befa4564c51eeb86685dd0f93a618.tar.bz2
ufm-8c3e73dad73befa4564c51eeb86685dd0f93a618.zip
tbi/win: use return value for getting length
Diffstat (limited to 'Library/UefiShellUfmCommandLib')
-rw-r--r--Library/UefiShellUfmCommandLib/tbi/win.c3
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;