Henri Verbeet : wined3d: Just use the actual array size as argument to memcpy() in stateblock_copy( ).