From d27eafe03a46512d4cd2c6c38fe2e65ba0c51aa2 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 21 Jul 2023 11:22:57 +0300 Subject: [PATCH] Fix win_get_str return code --- src/window_manager_private.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window_manager_private.cc b/src/window_manager_private.cc index 2330211..beef020 100644 --- a/src/window_manager_private.cc +++ b/src/window_manager_private.cc @@ -612,7 +612,7 @@ int _win_get_str(char* dest, int length, const char* title, int x, int y) windowRefresh(win); - _win_input_str(win, + int rc = _win_input_str(win, dest, length, 16, @@ -622,7 +622,7 @@ int _win_get_str(char* dest, int length, const char* title, int x, int y) windowDestroy(win); - return 0; + return rc; } // 0x4DB920