From 3b8cfa42c102852913956df6fc8eace5802d842e Mon Sep 17 00:00:00 2001 From: Doug Lyons Date: Thu, 10 Apr 2025 13:35:53 -0500 Subject: [PATCH] [RICHED20] Fix RTC MSVC Failure in function ME_GetTextW. (#7881) Import Wine Commit: https://gitlab.winehq.org/wine/wine/-/commit/5cbe3a6cb186cffed20e3fea5f88abd0880d3914 CORE-20082 --- dll/win32/riched20/editor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dll/win32/riched20/editor.c b/dll/win32/riched20/editor.c index a7794ab7901..d08f781d1da 100644 --- a/dll/win32/riched20/editor.c +++ b/dll/win32/riched20/editor.c @@ -4357,7 +4357,11 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen, str = get_text( run, 0 ); } /* append '\r' to the last paragraph. */ +#ifdef __REACTOS__ + if (run == para_end_run( para_prev( editor_end_para( editor ) ) ) && bEOP && buflen) +#else if (run == para_end_run( para_prev( editor_end_para( editor ) ) ) && bEOP) +#endif { *buffer = '\r'; buffer ++;