Update status based on DXGK and HKR enumearation
authorNikhil Joshi <nikhilj@nvidia.com>
Tue, 24 Sep 2019 17:06:12 +0000 (22:36 +0530)
committerNikhil Joshi <nikhilj@nvidia.com>
Tue, 24 Sep 2019 17:13:26 +0000 (22:43 +0530)
commite8b332d24cf2daa906af84f3f01b3304c582e78c
tree7da7596a5da092370e64692956ab0cfde0091b6f
parentb57177d16d65decd2048d8b802908bf17b43432e
Update status based on DXGK and HKR enumearation

khrIcdOsVendorsEnumerate currently does not consider
the status returned by DXGK and HKR enumeration
and returns TRUE only if HKLM regkey enumeration
results in successful adapterAdd.

Fix the returned status to consider successful
adapterAdd from DXGK and HKR enumeration.

Also, set freed adapger pointers to NULL to avoid
potential double-free issue.
loader/windows/icd_windows.c