richedit: Unsigned cast char to avoid EOF equality.

This commit is contained in:
Dylan Smith 2008-10-03 01:44:53 -04:00 committed by Alexandre Julliard
parent 930f8f5af6
commit e6c3a2beee
1 changed files with 1 additions and 1 deletions

View File

@ -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;