richedit: Return FALSE for EM_LINESCROLL with single line control.
Dylan Smith
dylan.ah.smith at gmail.com
Tue Feb 24 01:38:57 CST 2009
---
dlls/riched20/editor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 2a053d7..2a4a443 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3374,8 +3374,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-patches
mailing list