richedit: Don't change text mode with undo or redo stack.

This commit is contained in:
Dylan Smith 2010-07-29 14:02:42 -04:00 committed by Alexandre Julliard
parent 75eef41881
commit 16d7890426
1 changed files with 1 additions and 1 deletions

View File

@ -4319,7 +4319,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
int mask = 0;
int changes = 0;
if (ME_GetTextLength(editor))
if (ME_GetTextLength(editor) || editor->pUndoStack || editor->pRedoStack)
return E_UNEXPECTED;
/* Check for mutually exclusive flags in adjacent bits of wParam */