diff options
author | 2017-09-25 16:45:02 -0700 | |
---|---|---|
committer | 2017-10-02 16:32:27 -0700 | |
commit | 37fdb739607895335c748e42cd25170545a00d6c (patch) | |
tree | 2a2cc2e82bb42ec6f978376e5b5b93c222563da7 /src/core/lib/support/string_util_windows.cc | |
parent | fcd26bcd0f9091389915858ae0ac404b3c8748b9 (diff) |
More build errors
Diffstat (limited to 'src/core/lib/support/string_util_windows.cc')
-rw-r--r-- | src/core/lib/support/string_util_windows.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/support/string_util_windows.cc b/src/core/lib/support/string_util_windows.cc index d96f57a4b0..f8b9a06c31 100644 --- a/src/core/lib/support/string_util_windows.cc +++ b/src/core/lib/support/string_util_windows.cc @@ -43,7 +43,7 @@ gpr_char_to_tchar(LPCSTR input) { LPTSTR ret; int needed = MultiByteToWideChar(CP_UTF8, 0, input, -1, NULL, 0); if (needed <= 0) return NULL; - ret = gpr_malloc((unsigned)needed * sizeof(TCHAR)); + ret = (LPTSTR)gpr_malloc((unsigned)needed * sizeof(TCHAR)); MultiByteToWideChar(CP_UTF8, 0, input, -1, ret, needed); return ret; } @@ -53,7 +53,7 @@ gpr_tchar_to_char(LPCTSTR input) { LPSTR ret; int needed = WideCharToMultiByte(CP_UTF8, 0, input, -1, NULL, 0, NULL, NULL); if (needed <= 0) return NULL; - ret = gpr_malloc((unsigned)needed); + ret = (LPSTR)gpr_malloc((unsigned)needed); WideCharToMultiByte(CP_UTF8, 0, input, -1, ret, needed, NULL, NULL); return ret; } |