Juan Lang : richedit: Only send update events in 1. 0 emulation mode if the event mask specifies it.
Alexandre Julliard
julliard at winehq.org
Tue Jul 1 08:27:44 CDT 2008
Module: wine
Branch: master
Commit: c40c08b3d3b74c0c98c8de462270d98130423396
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c40c08b3d3b74c0c98c8de462270d98130423396
Author: Juan Lang <juan.lang at 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);
}
More information about the wine-cvs
mailing list