[PATCH v3 5/6] riched20: Return text without OLE object mark from WM_GETTEXT.

Huw Davies huw at codeweavers.com
Mon Jun 7 07:51:38 CDT 2021


On Sat, May 29, 2021 at 10:01:41PM +0800, Jactry Zeng wrote:
> Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
> ---
>  dlls/riched20/editor.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
> index 960d1401082..9d24d97d820 100644
> --- a/dlls/riched20/editor.c
> +++ b/dlls/riched20/editor.c
> @@ -2076,10 +2076,11 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
>    return -1;
>  }
>  
> -static int ME_GetTextEx(ME_TextEditor *editor, GETTEXTEX *ex, LPARAM pText)
> +static int ME_GetTextEx(ME_TextEditor *editor, GETTEXTEX *ex, LPARAM pText, BOOL oleobj)

You shouldn't need an extra param here.  The behaviour should be toggled with GT_RAWTEXT.

It would make sense to rewrite ME_GetTextW() so that it calls ME_GetTextEx() and
not the other way around.

Huw.



More information about the wine-devel mailing list