Module: wine Branch: master Commit: 91d57af637511ac0ad8c1ec7613b5d447023ca96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=91d57af637511ac0ad8c1ec761...
Author: Eric Pouech eric.pouech@orange.fr Date: Sun Mar 23 09:22:41 2008 +0100
richedit: For setting word wrapping, native only uses a null vs non null value.
---
dlls/riched20/editor.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 091cdac..39827bc 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -3207,12 +3207,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam, case EM_SETTARGETDEVICE: if (wParam == 0) { - switch (lParam) - { - case 0: editor->bWordWrap = TRUE; break; - case 1: editor->bWordWrap = FALSE; break; - default: FIXME("Unknown option to EM_SETTARGETDEVICE(NULL,%ld)\n", lParam); - } + editor->bWordWrap = (lParam == 0); } else FIXME("Unsupported yet non NULL device in EM_SETTARGETDEVICE\n"); break;