winhlp32: Properly detect non-ASCII chars.

This commit is contained in:
André Hentschel 2013-02-17 17:44:44 +01:00 committed by Alexandre Julliard
parent 7ce90cc719
commit 147d4bc88a
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ static BOOL HLPFILE_RtfAddText(struct RtfData* rd, const char* str)
}
for (last = p = str; *p; p++)
{
if (*p < 0) /* escape non ASCII chars */
if (*p & 0x80) /* escape non-ASCII chars */
{
static char xx[8];
rlen = sprintf(xx, "\\'%x", *(const BYTE*)p);