Fixed an infinite loop in IDirect3D::GetAdapterIdentifier()