Alex Villacís Lasso : riched20: EM_GETMODIFY should not report modification after WM_SETTEXT ( fixes todo_wine).

Alexandre Julliard julliard at winehq.org
Tue Nov 6 08:24:32 CST 2007


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

Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date:   Mon Nov  5 11:30:58 2007 -0500

riched20: EM_GETMODIFY should not report modification after WM_SETTEXT (fixes todo_wine).

---

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

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index f626e8f..b1444c0 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1929,6 +1929,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
     ME_CommitUndo(editor);
     ME_EmptyUndoStack(editor);
     ME_SetSelection(editor, 0, 0);
+    editor->nModifyStep = 0;
     ME_UpdateRepaint(editor);
     return 1;
   }
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index f5902ed..c5bde6a 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -1546,10 +1546,8 @@ static void test_EM_GETMODIFY(void)
   SendMessage(hwndRichEdit, EM_SETMODIFY, FALSE, 0);
   SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)TestItem2);
   result = SendMessage(hwndRichEdit, EM_GETMODIFY, 0, 0);
-  todo_wine {
   ok (result == 0,
       "EM_GETMODIFY returned non-zero for WM_SETTEXT\n");
-  }
   
   /* clear the text */
   SendMessage(hwndRichEdit, EM_SETMODIFY, FALSE, 0);




More information about the wine-cvs mailing list