aboutsummaryrefslogtreecommitdiff
path: root/src/win/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/tty.c')
-rw-r--r--src/win/tty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/win/tty.c b/src/win/tty.c
index 398288ec..45bbe968 100644
--- a/src/win/tty.c
+++ b/src/win/tty.c
@@ -791,8 +791,9 @@ void uv_process_tty_read_raw_req(uv_loop_t* loop, uv_tty_t* handle,
if (KEV.uChar.UnicodeChar >= 0xDC00 &&
KEV.uChar.UnicodeChar < 0xE000) {
/* UTF-16 surrogate pair */
- WCHAR utf16_buffer[2] = { handle->tty.rd.last_utf16_high_surrogate,
- KEV.uChar.UnicodeChar};
+ WCHAR utf16_buffer[2];
+ utf16_buffer[0] = handle->tty.rd.last_utf16_high_surrogate;
+ utf16_buffer[1] = KEV.uChar.UnicodeChar;
char_len = WideCharToMultiByte(CP_UTF8,
0,
utf16_buffer,