[PATCH v2 5/6] d3d8/tests: Use correct index variable in test_resource_access() (Coverity).