Juan Lang : richedit: Only send update events in 1. 0 emulation mode if the event mask specifies it.
Module: wine Branch: master Commit: c40c08b3d3b74c0c98c8de462270d98130423396 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c40c08b3d3b74c0c98c8de4622... Author: Juan Lang <juan.lang(a)gmail.com> Date: Sat Jun 28 18:04:58 2008 -0700 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. --- dlls/riched20/paint.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 95befbc..a2bc7c5 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -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); }
participants (1)
-
Alexandre Julliard