[PATCH 06/24] [Richedit]: don't allow recursive EN_REQUESTRESIZE notifications

Eric Pouech eric.pouech at orange.fr
Tue Jan 1 15:03:52 CST 2008




A+
---

 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;
     }
   }
 }





More information about the wine-patches mailing list