=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: winhlp32: Properly detect non-ASCII chars.
Alexandre Julliard
julliard at winehq.org
Mon Feb 18 13:27:06 CST 2013
Module: wine
Branch: master
Commit: 147d4bc88a4059e129073effa30bd615eef54632
URL: http://source.winehq.org/git/wine.git/?a=commit;h=147d4bc88a4059e129073effa30bd615eef54632
Author: André Hentschel <nerv at 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);
More information about the wine-cvs
mailing list