Clinton Stimpson : riched20: Adjust event mask when sending EN_CHANGE notification.
Alexandre Julliard
julliard at winehq.org
Thu Sep 20 10:30:10 CDT 2007
Module: wine
Branch: master
Commit: f8f07dfe549ed3772d2af989f6d4b462a2ddebc8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f8f07dfe549ed3772d2af989f6d4b462a2ddebc8
Author: Clinton Stimpson <cjstimpson at utwire.net>
Date: Wed Sep 19 08:31:14 2007 -0600
riched20: Adjust event mask when sending EN_CHANGE notification.
---
dlls/riched20/paint.c | 2 ++
dlls/riched20/tests/editor.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index 215477b..7c40814 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -120,7 +120,9 @@ void ME_UpdateRepaint(ME_TextEditor *editor)
/* send EN_CHANGE if the event mask asks for it */
if(editor->nEventMask & ENM_CHANGE)
{
+ editor->nEventMask &= ~ENM_CHANGE;
ME_SendOldNotify(editor, EN_CHANGE);
+ editor->nEventMask |= ENM_CHANGE;
}
ME_Repaint(editor);
ME_SendSelChange(editor);
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index c929077..98b355e 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -2023,10 +2023,8 @@ static void test_eventMask(void)
ok(ret == TRUE, "failed to set text\n");
/* richedit should mask off ENM_CHANGE when it sends an EN_CHANGE
notification in response to WM_SETTEXT */
-todo_wine {
ok(queriedEventMask == (eventMask & ~ENM_CHANGE),
"wrong event mask (0x%x) during WM_COMMAND\n", queriedEventMask);
-}
}
More information about the wine-cvs
mailing list