Commit b9353b73 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dxof: Check the right offset before dereferencing next byte.

parent bfd56e5b
......@@ -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 == '"')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment