riched20: EM_GETMODIFY should not report modification after WM_SETTEXT (fixes todo_wine).
This commit is contained in:
parent
ba6b7e8ba5
commit
5d8b8cd899
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue