[PATCH] [RichEdit]: for setting word wrapping, native only uses a null vs non null value. we now do the same

Eric Pouech eric.pouech at orange.fr
Sun Mar 23 03:22:41 CDT 2008




A+
---

 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 acd0bac..e51eb0b 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3225,12 +3225,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;





More information about the wine-patches mailing list