khrIcdVendorsEnumerateEnv();
- if (!khrIcdOsVendorsEnumerateDXGK())
+ status |= khrIcdOsVendorsEnumerateDXGK();
+ if (!status)
{
KHR_ICD_TRACE("Failed to load via DXGK interface on RS4, continuing\n");
- if (!khrIcdOsVendorsEnumerateHKR())
+ status |= khrIcdOsVendorsEnumerateHKR();
+ if (!status)
{
KHR_ICD_TRACE("Failed to enumerate HKR entries, continuing\n");
}
adapterFree(iterAdapter);
}
- free(pWinAdapterBegin);
-
+ free(pWinAdapterBegin);
+ pWinAdapterBegin = NULL;
+ pWinAdapterEnd = NULL;
+ pWinAdapterCapacity = NULL;
+
result = RegCloseKey(platformsKey);
if (ERROR_SUCCESS != result)
{