d3dxof: Check the right offset before dereferencing next byte.

This commit is contained in:
Christian Costa 2012-03-08 09:17:02 +01:00 committed by Alexandre Julliard
parent bfd56e5bdc
commit b9353b73ae
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ static BOOL is_string(parse_buffer* buf)
if (*buf->buffer != '"')
return FALSE;
while (pos < buf->rem_bytes && !is_operator(c = *(buf->buffer+pos+1)))
while ((pos+1) < buf->rem_bytes && !is_operator(c = *(buf->buffer+pos+1)))
{
if (c == '"')
{