Alex Villacís Lasso : richedit: Accept RTF stream that does not start with {\rtf1 in 1.0 emulation.
Alexandre Julliard
julliard at winehq.org
Tue Apr 22 06:47:25 CDT 2008
Module: wine
Branch: master
Commit: e0af297466b0c12ab8ba78e359d6a46ffd5eca8b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0af297466b0c12ab8ba78e359d6a46ffd5eca8b
Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date: Mon Apr 21 17:50:14 2008 -0500
richedit: Accept RTF stream that does not start with {\rtf1 in 1.0 emulation.
---
dlls/riched20/editor.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 42f7216..9c4a013 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -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;
More information about the wine-cvs
mailing list