webservices: Use addition in read_skip.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-04-06 15:55:52 +02:00 committed by Alexandre Julliard
parent 92cb3bc0e2
commit ad2fe7e9a2

View File

@ -915,11 +915,8 @@ static inline unsigned int read_utf8_char( struct reader *reader, unsigned int *
static inline void read_skip( struct reader *reader, unsigned int count )
{
while (reader->read_pos < reader->read_size && count)
{
reader->read_pos++;
count--;
}
if (reader->read_pos + count > reader->read_size) return;
reader->read_pos += count;
}
static inline BOOL read_isnamechar( unsigned int ch )