From 13f86afe1fe5d51da5e32c17e23f89e4a4898ce9 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 1 Jan 2008 22:03:52 +0100 Subject: [PATCH] richedit: Don't allow recursive EN_REQUESTRESIZE notifications. --- dlls/riched20/wrap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index e38e50c4cc5..df1606ea6bd 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; } } }