[RICHED20] Fix RTC MSVC Failure in function ME_GetTextW. (#7881)

Import Wine Commit: 5cbe3a6cb1
CORE-20082
This commit is contained in:
Doug Lyons
2025-04-10 13:35:53 -05:00
committed by GitHub
parent 5022a451df
commit 3b8cfa42c1

View File

@@ -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 ++;