Commit 147d4bc8 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winhlp32: Properly detect non-ASCII chars.

parent 7ce90cc7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment