From 2aed652c01bbb7f697ae0dae3c53f3beb33a1cfd Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Thu, 10 Aug 2006 11:45:46 -0400 Subject: [PATCH] riched20: Accept RTF header without a version number. --- dlls/riched20/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index bf406bff549..85f9a20c91d 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -632,7 +632,7 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre 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 hWnd, UINT msg, WPARAM wParam, LPARAM lP 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);