richedit: For setting word wrapping, native only uses a null vs non null value.

This commit is contained in:
Eric Pouech 2008-03-23 09:22:41 +01:00 committed by Alexandre Julliard
parent df7ab004ce
commit 91d57af637
1 changed files with 1 additions and 6 deletions

View File

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