Index: src/views/win/SkOSWindow_win.cpp |
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp |
index 4b7abb1e96686cbb510b7282c7b83eccdbb65cc7..c451708cef0c4a80bf3306cecfc304f763c72fe3 100644 |
--- a/src/views/win/SkOSWindow_win.cpp |
+++ b/src/views/win/SkOSWindow_win.cpp |
@@ -147,7 +147,8 @@ bool SkOSWindow::wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
this->handleChar((SkUnichar) wParam); |
return true; |
case WM_CHAR: { |
- this->handleChar(SkUTF8_ToUnichar((char*)&wParam)); |
+ const uint16_t* c = reinterpret_cast<uint16_t*>(&wParam); |
+ this->handleChar(SkUTF16_NextUnichar(&c)); |
return true; |
} break; |
case WM_SIZE: { |