Dylan Smith : richedit: Unsigned cast char to avoid EOF equality.

Alexandre Julliard julliard at winehq.org
Mon Oct 6 09:35:06 CDT 2008


Module: wine
Branch: master
Commit: e6c3a2beeececd4b9320f5b3a46d2874c1d24310
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e6c3a2beeececd4b9320f5b3a46d2874c1d24310

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Fri Oct  3 01:44:53 2008 -0400

richedit: Unsigned cast char to avoid EOF equality.

---

 dlls/riched20/reader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c
index 3d5593a..ced4f7f 100644
--- a/dlls/riched20/reader.c
+++ b/dlls/riched20/reader.c
@@ -109,7 +109,7 @@ int _RTFGetChar(RTF_Info *info)
 		if (stream->dwSize == 0)
 			return EOF;
 	}
-	ch = stream->buffer[stream->dwUsed++];
+	ch = (unsigned char)stream->buffer[stream->dwUsed++];
 	if (!ch)
 		 return EOF;
 	return ch;




More information about the wine-cvs mailing list