Dylan Smith : richedit: Return FALSE for EM_LINESCROLL with single line control.

Alexandre Julliard julliard at winehq.org
Tue Feb 24 10:21:27 CST 2009


Module: wine
Branch: master
Commit: f28988684e02f5e3992e83aa942a491352e67c71
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f28988684e02f5e3992e83aa942a491352e67c71

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Tue Feb 24 02:38:57 2009 -0500

richedit: Return FALSE for EM_LINESCROLL with single line control.

---

 dlls/riched20/editor.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index e73679e..8af973c 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3375,8 +3375,10 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
   }
   case EM_LINESCROLL:
   {
+    if (!(editor->styleFlags & ES_MULTILINE))
+      return FALSE;
     ME_ScrollDown(editor, lParam * 8); /* FIXME follow the original */
-    return TRUE; /* Should return false if a single line richedit control */
+    return TRUE;
   }
   case WM_CLEAR:
   {




More information about the wine-cvs mailing list