Module: wine Branch: master Commit: 2aed652c01bbb7f697ae0dae3c53f3beb33a1cfd URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2aed652c01bbb7f697ae0dae...
Author: Phil Krylov phil@newstar.rinet.ru Date: Thu Aug 10 11:45:46 2006 -0400
riched20: Accept RTF header without a version number.
---
dlls/riched20/editor.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index bf406bf..85f9a20 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -632,7 +632,7 @@ static LRESULT ME_StreamIn(ME_TextEditor ME_StreamInFill(&inStream); if (!inStream.editstream->dwError) { - if (strncmp(inStream.buffer, "{\rtf1", 6) && strncmp(inStream.buffer, "{\urtf", 6)) + if (strncmp(inStream.buffer, "{\rtf", 5) && strncmp(inStream.buffer, "{\urtf", 6)) { format &= ~SF_RTF; format |= SF_TEXT; @@ -1894,7 +1894,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND if (lParam) { TRACE("WM_SETTEXT lParam==%lx\n",lParam); - if (!IsWindowUnicode(hWnd) && !strncmp((char *)lParam, "{\rtf1", 6)) + if (!IsWindowUnicode(hWnd) && !strncmp((char *)lParam, "{\rtf", 5)) { /* Undocumented: WM_SETTEXT supports RTF text */ ME_StreamInRTFString(editor, 0, (char *)lParam);