[PATCH v3 2/3] d3d8/tests: Use correct index variable in test_resource_access() (Coverity).