Re: [PATCH 3/3] riched20: Add UTF8 support for EM_SETTEXTEX. (try 5)
Jactry Zeng <jactry92(a)gmail.com> writes:
@@ -3313,6 +3315,10 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam, len = lParam ? strlen((char *)lParam) : 0; } } else { + if(bUTF8) { + lParam = lParam + 3; + pStruct->codepage = CP_UTF8; + }
That struct belongs to the caller, you can't change it. -- Alexandre Julliard julliard(a)winehq.org
2013/9/13 Alexandre Julliard <julliard(a)winehq.org>
@@ -3313,6 +3315,10 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor,
UINT msg, WPARAM wParam,
len = lParam ? strlen((char *)lParam) : 0; } } else { + if(bUTF8) { + lParam = lParam + 3; + pStruct->codepage = CP_UTF8; + }
That struct belongs to the caller, you can't change it.
Thank you for the review! I have sent another try. -- Regards, Jactry Zeng
participants (2)
-
Alexandre Julliard -
Jactry Zeng