richedit: Accept RTF stream that does not start with {\rtf1 in 1.0 emulation.

This commit is contained in:
Alex Villacís Lasso 2008-04-21 17:50:14 -05:00 committed by Alexandre Julliard
parent 2353e1d280
commit e0af297466
1 changed files with 2 additions and 1 deletions

View File

@ -1068,7 +1068,8 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
ME_StreamInFill(&inStream);
if (!inStream.editstream->dwError)
{
if (strncmp(inStream.buffer, "{\\rtf", 5) && strncmp(inStream.buffer, "{\\urtf", 6))
if ((!editor->bEmulateVersion10 && strncmp(inStream.buffer, "{\\rtf", 5) && strncmp(inStream.buffer, "{\\urtf", 6))
|| (editor->bEmulateVersion10 && *inStream.buffer != '{'))
{
format &= ~SF_RTF;
format |= SF_TEXT;