Commit 05d9df73 authored by Zhipeng Zhao's avatar Zhipeng Zhao Committed by Alexandre Julliard

winex11.drv: If the end of the sequence is '\r\n', there is no need to add extra '\r'.

parent 1e198e17
......@@ -673,7 +673,7 @@ static HANDLE unicode_text_from_string( UINT codepage, const void *data, size_t
MultiByteToWideChar( codepage, 0, data, size, strW + count, count );
for (i = j = 0; i < count; i++)
{
if (strW[i + count] == '\n') strW[j++] = '\r';
if (strW[i + count] == '\n' && (!i || strW[i + count - 1] != '\r')) strW[j++] = '\r';
strW[j++] = strW[i + count];
}
strW[j++] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment