Commit 13f86afe authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

richedit: Don't allow recursive EN_REQUESTRESIZE notifications.

parent c2631d85
...@@ -521,9 +521,11 @@ ME_SendRequestResize(ME_TextEditor *editor, BOOL force) ...@@ -521,9 +521,11 @@ ME_SendRequestResize(ME_TextEditor *editor, BOOL force)
info.nmhdr.code = EN_REQUESTRESIZE; info.nmhdr.code = EN_REQUESTRESIZE;
info.rc = rc; info.rc = rc;
info.rc.bottom = editor->nTotalLength; info.rc.bottom = editor->nTotalLength;
editor->nEventMask &= ~ENM_REQUESTRESIZE;
SendMessageW(GetParent(editor->hWnd), WM_NOTIFY, SendMessageW(GetParent(editor->hWnd), WM_NOTIFY,
info.nmhdr.idFrom, (LPARAM)&info); info.nmhdr.idFrom, (LPARAM)&info);
editor->nEventMask |= ENM_REQUESTRESIZE;
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment