winhlp32: Properly detect non-ASCII chars.
This commit is contained in:
parent
7ce90cc719
commit
147d4bc88a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue