richedit: Only send update events in 1.0 emulation mode if the event mask specifies it.

Fixes a crash in native cryptui.dll when viewing certificate properties.
This commit is contained in:
Juan Lang 2008-06-28 18:04:58 -07:00 committed by Alexandre Julliard
parent 641d6aa5c2
commit c40c08b3d3
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ void ME_Repaint(ME_TextEditor *editor)
ME_UpdateScrollBar(editor);
FIXME("ME_Repaint had to call ME_WrapMarkedParagraphs\n");
}
ME_SendOldNotify(editor, EN_UPDATE);
if (!editor->bEmulateVersion10 || (editor->nEventMask & ENM_UPDATE))
ME_SendOldNotify(editor, EN_UPDATE);
UpdateWindow(editor->hWnd);
}