Module: wine Branch: master Commit: 147d4bc88a4059e129073effa30bd615eef54632 URL: http://source.winehq.org/git/wine.git/?a=commit;h=147d4bc88a4059e129073effa3...
Author: André Hentschel nerv@dawncrow.de Date: Sun Feb 17 17:44:44 2013 +0100
winhlp32: Properly detect non-ASCII chars.
---
programs/winhlp32/hlpfile.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c index 96c1e75..3c49c33 100644 --- a/programs/winhlp32/hlpfile.c +++ b/programs/winhlp32/hlpfile.c @@ -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);