[PATCH 1/1] wined3d: Fix a memory write out-of-bounds (Coverity).