Commit 5d8b8cd8 authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

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

parent ba6b7e8b
......@@ -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;
}
......
......@@ -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);
......
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