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

This commit is contained in:
Alex Villacís Lasso 2007-11-05 11:30:58 -05:00 committed by Alexandre Julliard
parent ba6b7e8ba5
commit 5d8b8cd899
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);