Commit 0857d2b2 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

d3dxof: Remove assumption of 4 bytes pointers for LPSTR value.

parent 147e1200
......@@ -1140,7 +1140,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
{
get_TOKEN(buf);
TRACE("%s = %s\n", pt->members[i].name, (char*)buf->value);
if (!check_buffer(buf, 4))
if (!check_buffer(buf, sizeof(LPSTR)))
return FALSE;
if (pt->members[i].type == TOKEN_LPSTR)
{
......@@ -1153,7 +1153,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
strcpy((char*)buf->cur_pstrings, (char*)buf->value);
*(((LPCSTR*)(buf->cur_pos_data + buf->pdata))) = (char*)buf->cur_pstrings;
buf->cur_pstrings += len;
buf->cur_pos_data += 4;
buf->cur_pos_data += sizeof(LPSTR);
}
else
{
......
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