Commit f8f07dfe authored by Clinton Stimpson's avatar Clinton Stimpson Committed by Alexandre Julliard

riched20: Adjust event mask when sending EN_CHANGE notification.

parent 8072f698
......@@ -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);
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment