Skip to content

Commit 3b8cfa4

Browse files
authored
[RICHED20] Fix RTC MSVC Failure in function ME_GetTextW. (reactos#7881)
Import Wine Commit: https://gitlab.winehq.org/wine/wine/-/commit/5cbe3a6cb186cffed20e3fea5f88abd0880d3914 CORE-20082
1 parent 5022a45 commit 3b8cfa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dll/win32/riched20/editor.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4357,7 +4357,11 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen,
43574357
str = get_text( run, 0 );
43584358
}
43594359
/* append '\r' to the last paragraph. */
4360+
#ifdef __REACTOS__
4361+
if (run == para_end_run( para_prev( editor_end_para( editor ) ) ) && bEOP && buflen)
4362+
#else
43604363
if (run == para_end_run( para_prev( editor_end_para( editor ) ) ) && bEOP)
4364+
#endif
43614365
{
43624366
*buffer = '\r';
43634367
buffer ++;

0 commit comments

Comments
 (0)