Update icd_windows.c (#51)
authorcos-public <konstantin.kapustnik@gmail.com>
Sun, 7 Apr 2019 22:38:26 +0000 (05:08 +0630)
committerBen Ashbaugh <ben.ashbaugh@intel.com>
Sun, 7 Apr 2019 22:38:26 +0000 (15:38 -0700)
Return TRUE from khrIcdOsVendorsEnumerate() even if RegOpenKeyExA() fails to open the key.

icd_windows.c

index 9c509ea..5f89085 100644 (file)
@@ -54,7 +54,7 @@ BOOL CALLBACK khrIcdOsVendorsEnumerate(PINIT_ONCE InitOnce, PVOID Parameter, PVO
     if (ERROR_SUCCESS != result)
     {
         KHR_ICD_TRACE("Failed to open platforms key %s, continuing\n", platformsName);
-        return FALSE;
+        return TRUE;
     }
 
     // for each value