Module: wine Branch: master Commit: 13f86afe1fe5d51da5e32c17e23f89e4a4898ce9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=13f86afe1fe5d51da5e32c17e2...
Author: Eric Pouech eric.pouech@orange.fr Date: Tue Jan 1 22:03:52 2008 +0100
richedit: Don't allow recursive EN_REQUESTRESIZE notifications.
---
dlls/riched20/wrap.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index e38e50c..df1606e 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -521,9 +521,11 @@ ME_SendRequestResize(ME_TextEditor *editor, BOOL force) info.nmhdr.code = EN_REQUESTRESIZE; info.rc = rc; info.rc.bottom = editor->nTotalLength; - + + editor->nEventMask &= ~ENM_REQUESTRESIZE; SendMessageW(GetParent(editor->hWnd), WM_NOTIFY, info.nmhdr.idFrom, (LPARAM)&info); + editor->nEventMask |= ENM_REQUESTRESIZE; } } }