From 8e0d74865d5ca7758d96ff1649f6e8f5432ff4f7 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 9 Apr 2015 11:37:29 -0400 Subject: [PATCH] Fixed a runtime parameters bug in the previous commit. --- text_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_windows.c b/text_windows.c index 4f5b741c..df36f576 100644 --- a/text_windows.c +++ b/text_windows.c @@ -17,7 +17,7 @@ WCHAR *toUTF16(const char *str) return wstr; } -#define WCTMB(wstr, str, bufsiz) WideCharToMultiByte(CP_UTF8, WC_NO_BEST_FIT_CHARS, wstr, -1, str, bufsiz, NULL, FALSE) +#define WCTMB(wstr, str, bufsiz) WideCharToMultiByte(CP_UTF8, 0, wstr, -1, str, bufsiz, NULL, FALSE) char *toUTF8(const WCHAR *wstr) {