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

Alexandre Julliard julliard at winehq.org
Fri Jul 30 10:24:12 CDT 2010


Module: wine
Branch: master
Commit: 16d789042657d37734173aa2bff81ff5f8a014b7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=16d789042657d37734173aa2bff81ff5f8a014b7

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Thu Jul 29 14:02:42 2010 -0400

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

---

 dlls/riched20/editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index a6ca2b8..842b159 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -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 */




More information about the wine-cvs mailing list