Commit d31048f0 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

riched20: Fix loop condition while processing control content in WM_CREATE.

parent c043587d
......@@ -4039,7 +4039,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
if (!(editor->styleFlags & ES_MULTILINE))
{
len = 0;
while(textW[len] != '0' && textW[len] != '\r' && textW[len] != '\n')
while(textW[len] != '\0' && textW[len] != '\r' && textW[len] != '\n')
len++;
}
ME_InsertTextFromCursor(editor, 0, textW, len, editor->pBuffer->pDefaultStyle);
......
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