riched20: Use WARN() not ERR() on unknown tokens.

This commit is contained in:
Mike McCormack 2006-11-02 17:23:59 +09:00 committed by Alexandre Julliard
parent 5c004898b9
commit 14ec1d0c4c

View File

@ -583,7 +583,7 @@ RTFCharSetToCodePage(RTF_Info *info, int charset)
{ {
CHARSETINFO csi; CHARSETINFO csi;
DWORD n = charset; DWORD n = charset;
/* FIXME: TranslateCharsetInfo does not work as good as it /* FIXME: TranslateCharsetInfo does not work as good as it
* should, so let's use it only when all else fails */ * should, so let's use it only when all else fails */
if (!TranslateCharsetInfo(&n, &csi, TCI_SRCCHARSET)) if (!TranslateCharsetInfo(&n, &csi, TCI_SRCCHARSET))
@ -916,7 +916,7 @@ static void ReadFontTbl(RTF_Info *info)
{ {
default: default:
/* ignore token but announce it */ /* ignore token but announce it */
ERR ("%s: unknown token \"%s\"\n", WARN ("%s: unknown token \"%s\"\n",
fn, info->rtfTextBuf); fn, info->rtfTextBuf);
break; break;
case rtfFontFamily: case rtfFontFamily:
@ -986,7 +986,7 @@ static void ReadFontTbl(RTF_Info *info)
else else
{ {
/* ignore token but announce it */ /* ignore token but announce it */
ERR ( "%s: unknown token \"%s\"\n", WARN ( "%s: unknown token \"%s\"\n",
fn,info->rtfTextBuf); fn,info->rtfTextBuf);
} }
RTFGetToken (info); RTFGetToken (info);
@ -1064,7 +1064,7 @@ static void ReadColorTbl(RTF_Info *info)
group_level++; group_level++;
continue; continue;
} }
cp = New (RTFColor); cp = New (RTFColor);
if (cp == NULL) if (cp == NULL)
ERR ( "%s: cannot allocate color entry\n", fn); ERR ( "%s: cannot allocate color entry\n", fn);
@ -1228,7 +1228,7 @@ static void ReadStyleSheet(RTF_Info *info)
else /* unrecognized */ else /* unrecognized */
{ {
/* ignore token but announce it */ /* ignore token but announce it */
ERR ( "%s: unknown token \"%s\"\n", WARN ( "%s: unknown token \"%s\"\n",
fn, info->rtfTextBuf); fn, info->rtfTextBuf);
} }
} }