riched20: Fix loop condition while processing control content in WM_CREATE.
This commit is contained in:
parent
c043587d56
commit
d31048f0ae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue