[PATCH v2 2/7] d3dx9: Refactor WIC image info retrieval code in D3DXGetImageInfoFromFileInMemory().