From db802a46d9e129c87a55b955daea58595deadcda Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Wed, 29 Jun 2016 11:16:04 +0800 Subject: [PATCH] *fixed a mistake. --- shell/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/main.c b/shell/main.c index 0aecaf6..7bf193d 100755 --- a/shell/main.c +++ b/shell/main.c @@ -709,7 +709,7 @@ static int _bytes_to_wchar(const char* sz, wchar_t** out, size_t size) { *out = (wchar_t*)malloc(sizeof(wchar_t) * result); MultiByteToWideChar(CP_UTF8, 0, sz, -1, *out, result); - return true; + return result; } static int _bytes_to_wchar_ansi(const char* sz, wchar_t** out, size_t size) {