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